latestOpenAPI 3.0.02026-08-1284111344.5 KB
14666f4db0f8
TimeOffs
Retrieve future time offs
Retrieves a paginated list of future approved time offs based on the current date and pagination.
get/v2/timeoff/future
Query parameters
pageSizenumber
Example:10
Number of records to return per page.
pagenumber
Example:1
The page index.
field'id' | 'techId' | 'startDate' | 'endDate' | 'status' | 'reason' | 'details' | 'isAllDay' | 'updatedAt' | 'createdAt'
The field to sort results by.
order'ASC' | 'DESC'
The sort direction.
Headers
Authorizationstring required
Example:Bearer <token>
Bearer Token
Response
A paginated list of future approved Time Off.
Example response
{
"pageSize": 10,
"page": 1,
"totalResults": 50,
"hasMore": true,
"data": [
{
"id": "TO-de9750285414508f",
"techId": "USR-38c1ee5c4efa38a4",
"startDate": "2024-07-25 09:00:00",
"endDate": "2024-07-25 11:00:00",
"status": "approved",
"reason": "Vacation",
"details": "Doctor appointment",
"isAllDay": true,
"updatedAt": "2024-07-25 09:00:00",
"createdAt": "2024-07-25 09:00:00"
}
]
}