Update a time off policy
Changed onUpdates the specified time off policy. Set active to false to stop the policy from being assigned to more employees.
patch/time-off/policies/{policy}
Request
- Base URLhttps://sandbox.checkhq.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
policystring required
ID of the policy.
Request body
Example request
{
"name": "California Paid Sick Leave",
"active": true,
"limits": {
"min_balance": "0.00",
"max_rollover": "40.00",
"max_accrual_per_policy_year": "40.00"
},
"usage_waiting_period_days": 90
}Response
200
Example response
{
"id": "top_4fKq8Wz1mN2pR7sT",
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"name": "California Paid Sick Leave",
"active": true,
"policy_year": {
"basis": "fixed_date",
"date": "01-01"
},
"earning_type": "sick",
"accrual_method": "per_hour_worked",
"annual_grant": {
"hours": "40.00",
"partial_year_method": "prorate"
},
"per_payroll": {
"hours_per_year": "120.00"
},
"per_hour_worked": {
"hours": "1.00",
"per_hours_worked": "30.00"
},
"limits": {
"min_balance": "0.00",
"max_rollover": "40.00",
"max_accrual_per_policy_year": "40.00"
},
"usage_waiting_period_days": 90
}Changes
- info
endpoint added
- info