Create overtime policy
Changed onCreates a new overtime policy for the given organization and assigns the given members.
threshold is the number of hours worked per period (week for weekly, day for daily) before tracked time is considered overtime. pay_rate_multiplier is applied to the member's pay rate after the threshold is reached.
At least one member (user_ids) is required, and every assigned member must have a pay rate set. daily policies require the flexible overtime feature.
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.
Notifications are enabled by default but go to no one unless notification_role_ids is provided.
The policy becomes effective at the start of the organization's next week (for weekly policies) or the next day (for daily policies). Pass starts_on to schedule a later start aligned to that boundary.
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
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Response
An overtime policy
Changes
- info
endpoint added
- info