v1
latestOpenAPI 3.1.02026-07-14801408.6 KB/timeoff/requests
Creates a new time off request. Required scope: w_timeoff. Supports both user and account level tokens.
post/timeoff/requests
Request body
Example request
{
"from_date": "2024-04-15T00:00:00.000",
"to_date": "2024-04-20T00:00:00.000",
"half_days": [
{
"date": "2024-04-15T00:00:00.000"
}
]
}Response
200
Example response
{
"id": "1374",
"employee_id": "4d3",
"from_date": "2024-04-15T00:00:00.000",
"to_date": "2024-04-20T00:00:00.000",
"formatted_period": "15 April 2024 - 20 April 2024",
"state": "approved",
"requesting_total": 5,
"timeoff_tracking_unit": "half_days",
"updated_by": "Nikolaos Dimos",
"updated_at": "2024-04-09T10:02:57.424Z",
"category_name": "Paid time off ",
"pending_approvals": [
{
"id": "4d3",
"approver_id": "1839d70f-7caa-4f02-9e3f-c46cced76f5b"
}
]
}