timeOffPolicy
Return a particular time off policy by id
get/v1/org/{orgId}/timeoff/policy/{policyId}
Request
- Base URLhttps://localhost
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orgIdstring required
Org identifier (either id or slug)
policyIdstring required
TimeOff policy id
Response
successful operation
Example response
{
"id": "588f7ee98f138b19220041a7",
"orgId": "588f7ee98f138b19220041a7",
"name": "US Part-Time/Intern",
"displayName": "PTO",
"description": "Annual sick days allotted to employees",
"emoji": "🌴",
"holidayCalendarId": "588f7ee98f138b19220041a7",
"policyEvents": [
{
"groupId": "588f7ee98f138b19220041a7",
"title": "Tenure milestones"
}
],
"createId": "588f7ee98f138b19220041a7",
"createBehalfId": "588f7ee98f138b19220041a7",
"createAttribution": {
"principalUserId": "588f7ee98f138b19220041a7",
"agentUserIds": [
"588f7ee98f138b19220041a7"
],
"eventId": "588f7ee98f138b19220041a7",
"aiChatId": "588f7ee98f138b19220041a7"
},
"createAt": "2017-01-24T13:57:52Z",
"updateAt": "2017-01-24T13:57:52Z",
"updateId": "588f7ee98f138b19220041a7",
"updateBehalfId": "588f7ee98f138b19220041a7",
"updateAttribution": {
"principalUserId": "588f7ee98f138b19220041a7",
"agentUserIds": [
"588f7ee98f138b19220041a7"
],
"eventId": "588f7ee98f138b19220041a7",
"aiChatId": "588f7ee98f138b19220041a7"
},
"deleteId": "588f7ee98f138b19220041a7",
"deleteBehalfId": "588f7ee98f138b19220041a7",
"deleteAttribution": {
"principalUserId": "588f7ee98f138b19220041a7",
"agentUserIds": [
"588f7ee98f138b19220041a7"
],
"eventId": "588f7ee98f138b19220041a7",
"aiChatId": "588f7ee98f138b19220041a7"
},
"deleteAt": "2017-01-24T13:57:52Z"
}Changes
No recorded changes to this operation across all 33 revisions of this API.