v1
latestOpenAPI 3.0.02026-07-14800227.2 KBTime off
Set the balance (available balance) of a time off type for a specific employee.
This endpoint allows you to set (adjust) the balance of a time off type for a specific employee. The balance adjustment will be recorded in the time off history with a description of the change.
The employee must be assigned to the specified time off type for the operation to succeed. Balance values can be positive or negative.
put/time-off/set-balance/{timeOffTypeId}/{employeeId}
Path parameters
timeOffTypeIdstring required
Example:507f1f77bcf86cd799439011
The unique identifier of the time off type (MongoDB ObjectId).
employeeIdstring required
Example:507f191e810c19729de860ea
The unique identifier of the employee (MongoDB ObjectId).
Headers
Authorizationstring required
Example:Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL2FwaS5rZW5qby5pbyIsInN1YiI6IjYwZjBhOTE2MjE0OTg3MjU2YmU5YzhmZiIsImF1ZCI6Imh0dHBzOi8vYXBpLmtlbmpvLmlvIiwiaWF0IjoxNjI2Mzg1MTE1LCJuYmYiOjE2MjYzODUxMTUsImV4cCI6MTYyNjU1NzkxNSwiYWNjZXNzVHlwZSI6IkFwaUFjY2VzcyIsInNfb3JnSWQiOiI2MGYwNGVhN2RmN2JhMjFlY2U0YmYzYzIifQ.cxG_7dIS-VbmDXdJuLkekoyuyCIzQG2fMcgc0nkfbWE8cihhcb5FnALbQkjU9b5-qVcEoMHZlSuUA-jMEBMMVQ
A valid bearer token.
Request body
Example request
{
"balance": 15,
"description": "Year-end balance adjustment"
}Response
OK. The balance has been successfully adjusted.
object required
Example response
{}