time_off_policies
Update time off policy
Updates a time off policy. Only pass in the fields you want to change.
Updatable fields: name, accrual_policy, allow_negative_balances, requires_approval, balance_rolls_over_annually, paid, auto_add_new_users, and time_off_policy_user_ids (list-based policies only).
Immutable after creation: accrual_type and membership_rules. Use accrual_policy to update the configuration within the existing accrual type. For rules-based policies, member assignment cannot be modified via the API.
Returns the updated time off policy.
put/v2/time_off_policies/{time_off_policy_id}
Request
- Base URLhttps://api.hubstaff.com
- AuthOAuth 2Authorization codehttps://account.hubstaff.com/authorizations/newToken URLhttps://account.hubstaff.com/access_tokensScopeshubstaff:read, hubstaff:write
- TypeScripthttps://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/time_off_policies/:time_off_policy_id/put.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
time_off_policy_idinteger required
Time off policy ID
Request body
Response
A time off policy
Changes
No recorded changes to this operation across all 1 revision of this API.