Get policies on a workspace
Changed onRequest
- Base URL: https://api.clockify.me/api
- URL: https://api.clockify.me/api/v1/workspaces/{workspaceId}/time-off/policies
- Auth: one of:
- API key in header x-api-key
- API key in header x-addon-token
Path parameters
Represents a workspace identifier across the system.
Query parameters
Page number.
Page size.
If provided, you'll get a filtered list of policies that contain the provided string in their name.
If provided, you'll get a filtered list of policies with the corresponding status.
Response
OK
Example response
[
{
"allowNegativeBalance": true,
"approve": {
"requiresApproval": true,
"userIds": [
"6579d126c2fe3b25f20ea001",
"6579d126c2fe3b25f20ea002"
]
},
"archived": true,
"automaticAccrual": {
"amount": 20,
"period": "YEAR",
"timeUnit": "DAYS"
},
"color": "#8BC34A",
"icon": "UMBRELLA",
"id": "5b715612b079875110791111",
"name": "Days",
"timeUnit": "DAYS",
"userGroupIds": [
"5b715612b079875110791342",
"5b715612b079875110791324",
"5b715612b079875110793142"
],
"userIds": [
"5b715612b079875110791432",
"5b715612b079875110791234"
],
"workspaceId": "5b715612b079875110792222"
}
]Changes
- breaking
for the
queryrequest parametername, default valuewas added - breaking
for the
queryrequest parameterpage, default valuewas added - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status - info
the
response's property default valuewas added for the status
- breaking