Update a worker's leave award rules

Change the award rules for one worker, without changing the policy. Send the whole set: every leave type in the worker's active policy must be listed in its group, even the ones you aren't changing. The values you send are what the worker should have at their current tenure tier.

A limit is required when the policy uses it and rejected when it doesn't, and a value can't be lower than the amount the policy adds for the worker's tenure. Anything wrong returns 422 and nothing is changed. Start from Get a worker's leave award rules. See the Guide to the Leave Accrual API.

Path Params
string
required

The externalWorkerId you assigned to the worker, or Everee's generated workerId if you don't use your own IDs.

Body Params

Every leave type in the worker's active policy must be listed, even if it's unchanged. Values are what the worker should have at their current tenure tier.

accruedLeaveTypes
array of objects
required
accruedLeaveTypes*
frontLoadedLeaveTypes
array of objects
required
frontLoadedLeaveTypes*
unpaidFrontLoadedLeaveTypes
array of objects
required
unpaidFrontLoadedLeaveTypes*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json