Untether LabsDevelopers

Get Time Off Requests Count

gethttps://app.untetherlabs.com/api/v1/time-off/requests/count

Get the total count of time off requests for the current filters.

Query parameters#

providerIduuid

Filter to requests for a specific provider.

teamIdone of

Filter to requests for providers in specific teams.

Option 1 — uuid
uuid
Option 2 — uuid[]
uuid[]
policyIdone of

Filter to requests for specific policies.

Option 1 — uuid
uuid
Option 2 — uuid[]
uuid[]
startDatestring

Filter to requests whose start date is on or after the given timestamp.

endDatestring

Filter to requests whose end date is earlier than the provided timestamp.

statusTimeOffRequestStatus
pending
approved
rejected
cancelled
pending_sync
sync_failed
querystring
expandstring

Available expansions: policy, provider, rejectedBy

See Query Parameters for more information on expansions.

sortstring

Available fields: createdAt, startDate

See Query Parameters for more information on sorting.

Response 200#

countnumber
Required

Errors#

Time range end date must come after start date.

Show extension members
pathstring

Input validation failed.

Show extension members
pathstring
messagestring
Required