Update an employee’s external identifier
This endpoint allows changing an employee’s external identifier (employeeId).
PUT /api/v1/businesses/{businessId}/employees/{employeeId}/new-employee-id/{newEmployeeId}
Besides the business external identifier (businessId), the URL must specify the employee current identifier (employeeId) and the new one (newEmployeeId). The request does not include a body or query params.
Request example
PUT /api/v1/businesses/BUSINESSID/employees/CURRENTID/new-employee-id/NEWID
If the request is successful, the response will be 204 No Content.
|
The |
Error codes
In addition to the common errors, this endpoint can return the following codes:
| Code | Message | Description |
|---|---|---|
|
Person <employeeId> does not exist |
The current |
|
Employee <newEmployeeId> already exists in business <businessId> |
The |
Useful links
What is an employee?