time-off
Find time off
Retrieves a list of all resources from the service.
get/time-off
Request
- Base URL: https://api.hoorayhr.io
- URL: https://api.hoorayhr.io/time-off
- Auth: API key in header authorization
Query parameters
timeOffType'HOLIDAY' | 'LEAVE' | 'OVERTIME_NONE' | 'OVERTIME_PAYOUT' | 'OVERTIME_TIME_OFF_IN_LIEU' | 'TRANSACTION_SPENT' | 'TRANSACTION_LEGACY' | 'TRANSACTION_CORRECTION'
Example:LEAVE
Use the exact query from the example to fetch all leave items.
Response
success
Example response
[
{
"id": 5,
"userId": 1,
"budgetCalculated": 8,
"budgetAdjustment": 2,
"budgetTotal": 480,
"notes": "I would like to attend the wedding of my sister",
"start": "2022-02-15T14:01:17.516Z",
"end": "2022-02-15T18:01:17.516Z",
"pause": 30,
"tags": [
{
"id": 2,
"name": "Hours",
"archived": null
}
],
"status": 1,
"leaveTypeId": 1,
"leaveTypeRuleId": 2,
"timeOffType": "LEAVE",
"labelIds": [
1,
2,
3
],
"labels": [
{
"id": 5,
"name": "Long term leave",
"type": "LEAVE",
"systemCategoryType": "car",
"createdAt": "2022-02-23T14:01:17.516Z",
"updatedAt": "2022-02-23T14:01:17.516Z"
}
],
"timezone": "Europe/Amsterdam",
"createdAt": "2022-02-15T14:01:17.516Z",
"updatedAt": "2022-02-23T14:01:17.516Z",
"userIdApproved": 3,
"reply": "Enjoy the wedding!"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.