Creates a holiday. Omit ResourceIds and CountryId for global scope; set one list for people or country scope.
Persists the definition in one transaction. One occurrence is stored for each day from DateFrom through DateTo (inclusive), each as a full calendar day off. Omit CountryId and ResourceIds for a workspace-wide holiday; set one list for people or country scope. Each CountryId is an ISO 3166-1 alpha-2 string (for example NZ). The inclusive range is capped (see server validation) to limit payload size.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
Request
Reason or label for the holiday (for example, public holiday name or company shutdown).
First calendar day of the holiday (inclusive).
Last calendar day of the holiday (inclusive). Must be on or after DateFrom.
Resources this holiday applies to (people scope). Mutually exclusive with CountryId.
ISO 3166-1 alpha-2 country identifiers this holiday applies to (country scope). Mutually exclusive with ResourceIds.
Response
True if the API call succeeded; false otherwise.