Retrieve
/v1/time_off/policies/{id}
Get a specific time off policy by id
Path Parameters
id: string
a string starting with "top_"
Returns
id: string
a string starting with "top_"
description: string
hoursWorkedPerChunk: number
isUnlimited: boolean
minutesPerChunk: number
minutesPerPeriod: number
name: string
paid: boolean
timeOffTypeId: string
a string starting with "tot_"
timeOffTypeName: string
curl https://api.joinwarp.com/v1/time_off/policies/$ID \
-H "x-api-key: $WARP_API_KEY"
{
"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"
}
Returns Examples
{
"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"
}