Add new staff
To add a new staff to the system: This API endpoint allows administrators or authorized users to create and add a new user account to the customer.
Create a new user
POST /add-user
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
customer_id
string
The unique Marco identifier for your company.
name
string
Name of the user
email
string
Login email of the user
country
string
User's country
home_host
string
Is this a Home or Host country for this user? Format as "Home" or "Host"
is_local
boolean
Is this user a Local or a Foreigner in this country? Format as "true" or "false"
engagement_type
stringt
How is this user engaged for work in this company? Format as "Internal" or "EOR" or "IC"
job_start_date
date
User's job start date
probation_end_date
date
User's probation end date
job_title
string
User's job title
profile_type
string
Valid value: Manager Only/Staff Only/Manager & Staff
Parameter Example:
{
"customer_id": 1,
"name": "zhou nan test add staff5",
"email": "[email protected]",
"country": "ID",
"job_title": "HR Manager",
"job_start_date": "2024-08-01",
"engagement_type": "IC",
"probation_end_date": null,
"is_local": true,
"home_host": "Home",
"profile_type": "Manager & Staff"
}Response
{
"id": 5601,
"name": "zhou nan test add staff5",
"platform_email": "[email protected]",
"country": 32,
"job_title": "HR Manager",
"job_start_date": "2024-08-01",
"probation_end_date": null,
"host_country": null,
"profile_type": "Manager & Staff",
"home_country": "ID",
"home_country_engagement_type": "IC",
"host_country_engagement_type": "",
"home_country_is_local": true,
"host_country_is_local": false
}{
"error": "Invalid request"
}Last updated