v1
latestOpenAPI 3.0.12026-08-041753011.2 MBPolicy
Get policies on a workspace
get/v1/workspaces/{workspaceId}/time-off/policies
Path parameters
workspaceIdstring required
Represents a workspace identifier across the system.
Example:60f91b3ffdaf031696ec61a8
Represents a workspace identifier across the system.
Query parameters
pagestring
Page number.
page-sizeinteger
Page size.
Example:50
Page size.
namestring
If provided, you'll get a filtered list of policies that contain the provided string in their name.
Example:Holidays
If provided, you'll get a filtered list of policies that contain the provided string in their name.
status'ACTIVE' | 'ARCHIVED' | 'ALL'
If provided, you'll get a filtered list of policies with the corresponding status.
sort-columnstring
sort-orderstring
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"
}
]