v1
latestOpenAPI 3.0.12026-08-041753011.2 MBTime Off
Create a time off request
post/v1/workspaces/{workspaceId}/time-off/policies/{policyId}/requests
Path parameters
workspaceIdstring required
Represents a workspace identifier across the system.
Example:60f91b3ffdaf031696ec61a8
Represents a workspace identifier across the system.
policyIdstring required
Represents a policy identifier across the system.
Example:63034cd0cb0fb876a57e93ad
Represents a policy identifier across the system.
Request body
Example request
{
"note": "Create Time Off Note",
"timeOffPeriod": {
"halfDayPeriod": "NOT_DEFINED",
"period": {
"days": 3,
"end": "2021-12-25",
"start": "2021-12-23"
}
}
}Response
OK
Example response
{
"balance": 10,
"balanceDiff": 1,
"createdAt": "2022-08-26T08:32:01.640708Z",
"id": "5b715612b079875110791111",
"note": "Time Off Request Note",
"policyId": "5b715612b079875110792333",
"policyName": "Days",
"requesterUserId": "5b715612b0798751107925555",
"requesterUserName": "John",
"timeUnit": "DAYS",
"userEmail": "nicholas@clockify.com",
"userId": "5b715612b079875110794444",
"userName": "Nicholas",
"userTimeZone": "Europe/Budapest",
"workspaceId": "5b715612b079875110792222"
}