Update the home section for a given employee id.
This endpoint updates the employee home 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 'pet name' belongs to the 'home' section:
{
...,
"maritalStatus": "Divorced",
"c_petname": "Boliche",
...
}
'pet name' is a field type 'String'. It means that if a different type of data (number or boolean) is provided then the request will return an error.
Request
- Base URLhttps://sandbox-api.kenjo.io/api/v1
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The _id of the employee to update.
Headers
A valid bearer token.
Request body
Example request
{
"maritalStatus": "Widowed",
"spouseFirstName": "Catherine",
"spouseLastName": "Tramell",
"spouseBirthdate": "2060-01-26T00:00:00.000Z",
"spouseGender": "Female",
"personalEmail": "john@acme.io",
"personalPhone": "4567092323",
"personalMobile": "3567092310",
"children": [
{
"childFirstName": "John",
"childLastName": "Doe",
"childBirthdate": "2020-01-01T00:00:00.000Z",
"childGender": "Male"
}
]
}Response
OK
Example response
{
"_id": "60a2db290da29e126a18789a",
"maritalStatus": "Widowed",
"spouseFirstName": "Catherine",
"spouseLastName": "Tramell",
"spouseBirthdate": "2060-01-26T00:00:00.000Z",
"spouseGender": "Female",
"personalEmail": "john@acme.io",
"personalPhone": "4567092323",
"personalMobile": "3567092310",
"children": [
{
"childFirstName": "John",
"childLastName": "Doe",
"childBirthdate": "2020-01-01T00:00:00.000Z",
"childGender": "Male"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.