Leaves
Retrieve all leave requests.
Get a list of all leave requests.
get/leaves
Request
- Base URL: https://api.floorworks.co.uk/api/v1
- URL: https://api.floorworks.co.uk/api/v1/leaves
- Auth: OAuth 2 (password, token URL https://api.floorworks.co.uk/api/v1/auth)
Query parameters
order_field'id' | 'time_start' | 'time_end' | 'status' | 'type'
Field to sort results by.
srch_time'time_start' | 'time_end' | 'time_created' | 'time_modified'
Search date field.
srch_contactstring uuid
ID of the contact that is associated with this document.
srch_userstring uuid
ID of the user who created this document.
srch_status'REQUESTED' | 'APPROVED' | 'REJECTED'
Filter by leave status.
srch_type'SICK_LEAVE' | 'HOLIDAY_LEAVE' | 'UNPAID_ABSENCE' | 'AUTHORISED_ABSENCE' | 'MATERNITY_PATERNITY' | 'MEDICAL_APPOINTMENT' | 'UNAUTHORISED_ABSENCE' | 'OTHER'
Filter by leave type.
srch_date_fromstring d/m/Y
Search by start date
srch_date_tostring d/m/Y
Search by end date
page_sizenumber
Results per page
pagenumber
Current page
order_direction'DESC' | 'ASC'
Sort results ascending or descending
Response
List of all leave requests
Example response
[
{
"time_start": 1755388800,
"time_end": 1755475200,
"id": 12345,
"time_created": "2025-08-17",
"time_modified": "2025-08-18"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.