timeOffPolicy
Adjust time off balances for a group of people on a given policy and effective date
post/v1/org/{orgId}/timeoff/policy/balances/{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
Policy id associated with balances
Query parameters
datestring date
Effective Date
enterMatchingboolean
Add adjustment even if it matches current balance
Request body
Example request
{
"balances": [
{
"personId": "588f7ee98f138b19220041a7"
}
]
}Response
successful operation
Example response
{
"id": "588f7ee98f138b19220041a7",
"orgId": "588f7ee98f138b19220041a7",
"runUserId": "588f7ee98f138b19220041a7",
"parentProcessId": "588f7ee98f138b19220041a7",
"createId": "588f7ee98f138b19220041a7",
"createBehalfId": "588f7ee98f138b19220041a7",
"createAttribution": {
"principalUserId": "588f7ee98f138b19220041a7",
"agentUserIds": [
"588f7ee98f138b19220041a7"
],
"eventId": "588f7ee98f138b19220041a7",
"aiChatId": "588f7ee98f138b19220041a7"
},
"createAt": "2017-01-24T13:57:52Z",
"updateId": "588f7ee98f138b19220041a7",
"updateBehalfId": "588f7ee98f138b19220041a7",
"updateAttribution": {
"principalUserId": "588f7ee98f138b19220041a7",
"agentUserIds": [
"588f7ee98f138b19220041a7"
],
"eventId": "588f7ee98f138b19220041a7",
"aiChatId": "588f7ee98f138b19220041a7"
},
"updateAt": "2017-01-24T13:57:52Z",
"startAt": "2017-01-24T13:57:52Z",
"endAt": "2017-01-24T13:57:52Z",
"logDataList": [
{
"at": "2017-01-24T13:57:52Z"
}
],
"appId": "588f7ee98f138b19220041a7",
"uuid": "84db3c6e-0877-4436-8af1-768c06b29586"
}Changes
No recorded changes to this operation across all 33 revisions of this API.