Update overtime policy
Updates an overtime policy. Only pass in the fields you want to change.
Updatable fields: name, threshold, pay_rate_multiplier, auto_add_new_users, notification_enabled, notification_role_ids, and user_ids (member assignments).
Immutable after creation: policy_type. Editing an archived policy is not allowed.
Changes apply at the start of the organization's next week (for weekly policies) or the next day (for daily policies). A policy that is already in use is not edited in place — a new version is created and the current one is archived.
A member can only belong to one policy of a given type at a time. If any member in user_ids is already assigned to another active policy of the same type, the request fails unless override is true, in which case those members are moved into this policy.
Only organization Owners and Managers may use this endpoint.
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/overtime_policies/:overtime_policy_id/put.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Overtime policy ID
Request body
Response
An overtime policy
Changes
No recorded changes to this operation across all 1 revision of this API.