Update Holiday
Renames a holiday on your company’s holiday list or moves it to another date. Shared rules: see Writing data.
- The body is closed: an unknown field is refused with
400. Counts toward your write budget. - Find the holiday with
dateandname, exactly as List Holidays shows them (nameis matched ignoring case). No match gives404. - Send
new_name,new_dateor both: otherwise400"Send new_name, new_date or both."new_datemust be in the current year or next year. - If the change would give two holidays the same name on the same date (name compared ignoring case), you get
400and nothing is saved. - Deleting holidays is not available through the API; use the SalaryBox app.
- Needs the Holiday Lists plan feature.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
date
The holiday’s current date, YYYY-MM-DD.
name
The holiday's current name, matched ignoring case.
new_name
The new name.
new_date
The new date, YYYY-MM-DD, in the current year or next year.
Response
The holiday was updated. data shows its name and date after the change.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
