v1

latestOpenAPI 3.0.02026-07-14800227.2 KB
Employees

Update the account section for a given employee id.

This endpoint updates the employee account section for a given employee id. The operation only updates the fields provided in the body.

put/employees/{employeeId}/accounts

Path parameters

employeeIdstring required
Example:60a2db290da29e126a18789a

The _id of the employee to update.

Headers

Authorizationstring required
Example:Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FwaS5rZW5qby5pbyIsInN1YiI6IjYwZjBhOTE2MjE0OTg3MjU2YmU5YzhmZiIsImF1ZCI6Imh0dHBzOi8vYXBpLmtlbmpvLmlvIiwiaWF0IjoxNjI2Mzg1MTE1LCJuYmYiOjE2MjYzODUxMTUsImV4cCI6MTYyNjU1NzkxNSwiYWNjZXNzVHlwZSI6IkFwaUFjY2VzcyIsInNfb3JnSWQiOiI2MGYwNGVhN2RmN2JhMjFlY2U0YmYzYzIifQ.cxG_7dIS-VbmDXdJuLkekoyuyCIzQG2fMcgc0nkfbWE8cihhcb5FnALbQkjU9b5-qVcEoMHZlSuUA-jMEBMMVQ

A valid bearer token.

Request body

emailstring

The employee email in Kenjo. This is an unique identifier and required.

externalIdstring

The employee external id for integration proposals. This value must be unique.

languagestring

The employee language. Only is valid one of the following values 'en' (english), 'es' (spanish) or 'de' (german).

Example request

{
  "email": "john@acme.io",
  "externalId": "E-000001",
  "language": "en"
}

Response

OK

_idstring

The employee Kenjo _id.

emailstring

The employee email in Kenjo. This is an unique identifier and required.

externalIdstring

The employee external id for integration proposals.

languagestring

The employee language in integrations.

Example response

{
  "_id": "50a2db290da29e126a187843",
  "email": "john@acme.io",
  "externalId": "E-000001",
  "language": "es"
}