# Update an employee **PATCH /employees/{id}** Update an employee by its ID ## Servers - https://api.staging.pexipengage.com/enterprises/acme: https://api.staging.pexipengage.com/enterprises/acme () ## Authentication methods - O auth2 ## Parameters ### Headers - **Authorization** (string) Bearer token used for authorization - **X-Correlation-Id** (string) Unique identifier to allow referencing a particular transaction or event chain - **Accept-Language** (string) Returns the requested resources translated according to the passed languages (see [translatable resources](../topic/topic-languages-translations\#topic-translatable-resources)) ### Path parameters - **id** (string) Primary identifier of the requested resource ### Body: application/json (object) - **communicationEmail** (string | null) - **externalId** (string | null) - **username** (string | null) - **firstName** (string) - **lastName** (string) - **staticVideoUrl** (string(uri) | null) - **phoneNumber** (string | null) - **profilePictureUrl** (string(uri) | null) - **metadata** (object | null) - **email** (string | null) - **language** (string | null) - **languageExpertise** (array[string] | null) - **timeZone** (string | null) - **availableRoles** (array[string] | null) - **status** (string | null) - **onlinePlanning** (boolean | null) - **officeRelations** (array[object] | null) - **translations** (object) ## Responses ### 200 Successful operation #### Body: application/json (object) - **data** (object) ### 404 Resource not found #### Body: application/json (object) - **errors** (array[object]) ### 422 Business validation failed * `EMPLOYEE_EMAIL_ALREADY_IN_USE` * `EMPLOYEE_EXTERNAL_ID_ALREADY_IN_USE` * `EMPLOYEE_OFFICE_RELATION_ROLE_MISMATCH` * `EMPLOYEE_ONLINE_PLANNING_NON_AGENT` * `EMPLOYEE_USERNAME_ALREADY_IN_USE` * `EMPLOYEE_UPDATE_STATUS_PENDING` * `FILE_URL_INVALID` See [Error codes](#topic-error-codes) #### Body: application/json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)