Update 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.


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).



Example:


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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The _id of the employee to update.

Body Params
string

The company id of the Kenjo employee.

string

The office id of the Kenjo employee.

string

The department id of the Kenjo employee.

string

The starting date of the Kenjo employee in format YYYY-MM-DDThh:mm:ss.

string

The job title of the employee.

string

The work phone of the employee.

string

The work mobile of the employee.

boolean

Allow to indicate if the employee has or not the assistant role.

string

The probation period of the employee. Format YYYY-MM-DDThh:mm:ss.000Z.

string

The contract end date of the employee. Format YYYY-MM-DDThh:mm:ss.000Z.

string

The Kenjo employee id of the user to whom the employee reports. The employee id to assign can be an active or inactive user. Trying to assign the own employee id or the id of someone who is already reporting will arise an error.

Headers
string
required

A valid bearer token.

Responses

401

UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json