Create a time off request
Path parameters
Represents a workspace identifier across the system.
Represents a workspace identifier across the system.
Represents a policy identifier across the system.
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"
}Changes
Changed in 1 of the 2 revisions of this API.16
- ○
the
endrequest property default valuewas addedrequest-property-default-value-added
- ○
the
halfDayPeriodrequest property default valuewas addedrequest-property-default-value-added
- ○
the
noterequest property default valuewas addedrequest-property-default-value-added
- ○
the
startrequest property default valuewas addedrequest-property-default-value-added
- ○
the
idresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
noteresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
policyIdresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
policyNameresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
requesterUserIdresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
requesterUserNameresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
timeUnitresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
userEmailresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
userIdresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
userNameresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
userTimeZoneresponse's property default valuewas added for the status200response-property-default-value-added
- ○
the
workspaceIdresponse's property default valuewas added for the status200response-property-default-value-added
- ○