Edit staff info
This API endpoint allow to edit the staff information.
Edit user info
POST /edit-user
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
customer_id
number
The unique Marco identifier for your company.
name
string
Name of the user
email
number
Login email of the user
job_start_date
date
The staff's job start date, formatted as YYYY-MM-DD.
probation_end_date
date
The staff's probation end date, formatted as YYYY-MM-DD.
job_title
string
The staff's job title.
profile_type
string
Valid values: Manager Only / Staff Only / Manager & Staff
birthdate
date
The staff's date of birth, formatted as YYYY-MM-DD
gender
string
The staff's gender. Valid values: Female, Male
higntest_education
string
The staff's highest education.
nationality
string
The staff's nationality, formatted as the country's ISO Alpha-2 code.
personal_email
string
The staff's personal email.
phone
string
The staff's phone number.
phone_country
string
The country code for the staff's phone number, formatted as the country's ISO Alpha-2 code.
emergency_email
string
The email belonging to the staff's emergency contact.
emergency_name
string
The name of the staff's emergency contact.
emergency_phone
string
The phone number belonging to the staff's emergency contact.
emergency_phone_country
string
The country code for the staff's emergency contact's phone number, formatted as the country's ISO Alpha-2 code.
emergency_relationship
string
The staff's relationship to the emergency contact.
reporting_officer
string
The staff's reporting manager.
last_working_date
date
The staff's last working day, formatted as YYYY-MM-DD.
offboarding_reason
string
The staff's offboarding reason.
Valid values: Involuntary, Voluntary
location
string
The staff's work location.
work_email
string
The staff's work email.
Parameter Example
{
"customer_id": "1",
"name": "Nitin",
"email": "[email protected]",
"job_title": "IT",
"job_start_date": "2024-10-31",
"birthdate": "2000-01-01",
"gender": "Male",
"highest_education": "Bachelor's degree",
"nationality": "US",
"personal_email": "[email protected]",
"phone": "12345678901",
"phone_country": "CN",
"emergency_email": "[email protected]",
"emergency_name": "Zhang",
"emergency_phone": "12345678901",
"emergency_phone_country": "CN",
"emergency_relationship": "Mother",
"reporting_officer": "[email protected]",
"probation_end_date": "2024-12-31",
"last_working_day": "",
"offboarding_reason": "",
"location": "Beijing",
"work_email": "[email protected]",
"customer_data_type": "",
"profile_type": "Manager & Staff"
}Response
{
"id": 37,
"name": "Nitin",
"platform_email": "[email protected]",
"status": "Regular",
"offboarding_reason": "",
"birthdate": "2000-01-01",
"gender": "Male",
"highest_education": "Bachelor's degree",
"nationality": 79,
"personal_email": "[email protected]",
"phone": "+86 12345678901",
"emergency_name": "Zhang",
"emergency_email": "[email protected]",
"emergency_phone": "+8612345678901",
"emergency_relationship": "Mother",
"job_title": "IT",
"location": "Beijing",
"work_email": "[email protected]",
"job_start_date": "2024-10-31",
"probation_end_date": "2024-12-31",
"last_working_day": null,
"reporting_officer": null
}{
"error": "Invalid request"
}Last updated