v1
latestOpenAPI 3.0.02026-07-14800227.2 KBUpdate the work section for a given employee id.
This endpoint updates the employee work section for a given employee id. The operation only updates the fields provided in the body. <br><br>Custom fields information can be provided in this operation. The API name of the custom field is required and the data format has to match with the type defined for the custom field in Kenjo. API names start with 'c_' and the rest is composed by the trimmed name (spaces are removed). <br><br> Example: <br> The custom field 'activity type' belongs to the 'personal' section:
{
...,
"companyId": "61d874aef37c05cfba4f1b38",
"c_activityType": "1",
...
}
'activity Type' is a field type 'List' (Strings list) with the possible values: "1" and "2". It means that if a different value or type is provided then the request will return an error.
Path parameters
The _id of the employee to update.
Headers
A valid bearer token.
Request body
Example request
{
"companyId": "50a2db290da29e126a187894",
"officeId": "50a2db290da29e126a187895",
"departmentId": "50a2db290da29e126a187896",
"startDate": "2021-07-01T00:00:00.000Z",
"jobTitle": "Actor",
"workPhone": "+34 666 70 90 32",
"workMobile": "+34 680 70 90 32",
"probationPeriodEnd": "2022-06-01T00:00:00.000Z",
"contractEnd": "2030-06-01T00:00:00.000Z",
"reportsToId": "50a2db290da29e126a1878523"
}Response
OK
Example response
{
"_id": "60a2db290da29e126a18789a",
"companyId": "50a2db290da29e126a187894",
"officeId": "50a2db290da29e126a187895",
"departmentId": "50a2db290da29e126a187896",
"startDate": "2021-07-01T00:00:00.000Z",
"jobTitle": "Actor",
"workPhone": "+34 666 70 90 32",
"workMobile": "+34 680 70 90 32",
"probationPeriodEnd": "2022-06-01T00:00:00.000Z",
"contractEnd": "2030-06-01T00:00:00.000Z",
"reportsToId": "50a2db290da29e126a1878523"
}