List Requests
/v1/time_off/requests
Get the time off requests that workers in your company have made.
Query Parameters
afterId: optional string
beforeId: optional string
endsBefore: optional string
a string to be decoded into a Date
endsOnOrAfter: optional string
a string to be decoded into a Date
limit: optional string
a number less than or equal to 100
policyIds: optional array of string
startsBefore: optional string
a string to be decoded into a Date
startsOnOrAfter: optional string
a string to be decoded into a Date
workerIds: optional array of string
Returns
count: number
an integer
hasMore: boolean
curl https://api.joinwarp.com/v1/time_off/requests \
-H "x-api-key: $WARP_API_KEY"
{
"count": 0,
"data": [
{
"id": "id",
"createdAt": "createdAt",
"endAt": "endAt",
"reason": "reason",
"requestedMinutes": 0,
"startAt": "startAt",
"status": "pending",
"timeOffPolicyId": "top_1234",
"timeZone": "America/New_York",
"workerId": "wrk_1234"
}
],
"hasMore": true
}
Returns Examples
{
"count": 0,
"data": [
{
"id": "id",
"createdAt": "createdAt",
"endAt": "endAt",
"reason": "reason",
"requestedMinutes": 0,
"startAt": "startAt",
"status": "pending",
"timeOffPolicyId": "top_1234",
"timeZone": "America/New_York",
"workerId": "wrk_1234"
}
],
"hasMore": true
}