Update Company Holiday

Updates a company holiday with a JSON Merge Patch (RFC 7396) document. Only the fields present in the patch change; countryCodes, audience, and holidayPay replace their stored blocks wholesale when supplied. Send null for endDate to revert to a single-day holiday and null for holidayPay to clear the pay treatment. globalHolidayUuid is read-only and rejected if present.

OAuth Scopes: holidays.write

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The company holiday ID.

Body Params

JSON Merge Patch payload to update a company holiday. Only the fields present in the document are changed; countryCodes, audience, and holidayPay replace their stored blocks wholesale when supplied. globalHolidayUuid is read-only and rejected if present.

string

The name of the holiday. 1-255 characters.

date

The start date of the holiday.

The end date of the holiday. Must be greater than or equal to startDate. Send null to clear it and revert to a single-day holiday.

boolean

Whether the holiday is visible to all employees on calendars, independent of audience.

countryCodes
array of strings

Country filter as ISO 3166-1 alpha-2 codes. Replaces the stored country filter wholesale; an empty array removes the filter.

countryCodes
audience
object

Who the holiday applies to. Replaces the stored audience block wholesale; sub-rows that no longer apply to the new mode are cleared.

Pay treatment for the holiday. Replaces the stored pay block wholesale; send null to clear it (no special pay handling).

Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json