Skip to navigation

Patch Employee

View as Markdown

Patch Employee

This API is used to update employee information by providing the employee code in the endpoint URL. The request body should contain the updated employee details in JSON format.

Request Body

ParamsRequiredTypeDescription
name.firstOptionalStringThe first name of the employee.
name.lastOptionalStringThe last name of the employee.
emailOptionalStringThe email address of the employee.
mobileOptionalStringThe mobile number of the employee.
dobOptionalIntegerThe date of birth of the employee in Unix timestamp format.
managerCodeOptionalStringThe code of the manager for the employee.
alternateManagerCodeOptionalStringThe code of the alternate manager for the employee.
hrHeadCodeOptionalStringThe code of the HR head for the employee.
officeIdsOptionalArrayAn array of office IDs associated with the employee.
eaCodeOptionalStringThe EA code of the employee.
customFieldsOptionalObjectAdditional custom fields for the employee.
qrDisabledOptionalBooleanA flag to indicate if the QR code is disabled for the employee.

Response

The response will contain a success field indicating whether the update was successful.

Example

{
"success": true
}

Path parameters

codestringRequired

Headers

DICE-APP-IDstringOptional
Company Code of client
X-CLIENT-IDstringOptional
API Client ID
X-CLIENT-SECRETstringOptional
API Client Secret

Request

This endpoint expects an object.
nameobjectRequired
emailstringRequiredformat: "email"
mobilestringRequired
dobintegerRequired
managerCodestringRequired
alternateManagerCodestringRequired
hrHeadCodestringRequired
officeIdslist of anyRequired
eaCodestringRequired
customFieldsobjectRequired
qrDisabledbooleanRequired

Response

OK
successboolean