List
/v1/time_off/policies
Get the time off policies for your company
Query Parameters
afterId: optional string
a string starting with "top_"
beforeId: optional string
a string starting with "top_"
limit: optional string
a number less than or equal to 100
Returns
count: number
an integer
hasMore: boolean
curl https://api.joinwarp.com/v1/time_off/policies \
-H "x-api-key: $WARP_API_KEY"
{
"count": 0,
"data": [
{
"id": "top_1234",
"description": "Vacation policy for the whole company",
"hoursWorkedPerChunk": 0,
"isUnlimited": true,
"minutesPerChunk": 0,
"minutesPerPeriod": 0,
"name": "Company-Wide Vacation Policy",
"paid": true,
"schedule": "per_hour_worked",
"timeOffTypeId": "tot_1234",
"timeOffTypeName": "Vacation",
"unit": "hour"
}
],
"hasMore": true
}
Returns Examples
{
"count": 0,
"data": [
{
"id": "top_1234",
"description": "Vacation policy for the whole company",
"hoursWorkedPerChunk": 0,
"isUnlimited": true,
"minutesPerChunk": 0,
"minutesPerPeriod": 0,
"name": "Company-Wide Vacation Policy",
"paid": true,
"schedule": "per_hour_worked",
"timeOffTypeId": "tot_1234",
"timeOffTypeName": "Vacation",
"unit": "hour"
}
],
"hasMore": true
}