Add Holidays
Adds holidays to your company’s holiday list. Shared rules: see Writing data.
- Send 1 to 50 holidays per request.
datemust be in the current year or next year. - The same name and date twice in one request (name compared ignoring case) gives
400. - A holiday the company already has (same date and same name, ignoring case) is not added again; it is listed under
already_present, so sending the same list twice is safe. - To rename or move a holiday, use Update Holiday (
PUT /attendance/holiday). Deleting holidays is not available through the API; use the SalaryBox app. To read the list, useGET /attendance/holiday-list. - Needs the Holiday Lists plan feature.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
holidays
Holidays to add (1 to 50).
Response
The holidays were saved.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
