v1
latestOpenAPI 3.1.02026-07-1274177461.2 KBEmployees
Time Off
Create Employee Time Off Request
post/unified/hris/employees/{id}/time_off
Path parameters
idstring required
Headers
x-account-idstring required
The account identifier
Preferstring
Example:heartbeat
Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)
Request body
Example request
{
"approver_id": "1687-4",
"start_date": "2021-01-01T01:01:01.000",
"end_date": "2021-01-01T01:01:01.000",
"time_off_policy_id": "cx280928933",
"reason": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
},
"comment": "Taking a day off for personal reasons",
"passthrough": {
"other_known_names": "John Doe"
}
}Response
Record created successfully.
Example response
{
"statusCode": 201,
"message": "Record created successfully.",
"timestamp": "2021-01-01T01:01:01.000Z",
"data": {
"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3",
"remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3"
}
}