Skip to main content
POST
Create a leave policy

Parameters

string
required
Human-readable policy name.
string
Plain-language explanation of the policy.
string
Lifecycle state for the policy. One of draft, active, or archived. Defaults to active.
string
required
Leave type, for example vacation or sick_time_off.
string
required
Whether the policy is a set or add policy.
string
required
Unit used for policy quantities. One of days or hours.
string
Optional CEL expression used for automatic matching against the worker resource shape, for example worker.employment.location.address.country == "FR".
object
required
Period definition for the policy.
object
Optional accrual rule. Use null for unlimited leave.
object
Optional carryover rule. Use null for use-it-or-lose-it.
object
Optional balance bounds. Use null for unlimited leave.
object
Optional per-period usage cap.
object
required
Termination payout rule.

Returns

Returns the created Leave Policy object.