Skip to navigation

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 date and name, exactly as List Holidays shows them (name is matched ignoring case). No match gives 404.
  • Send new_name, new_date or both: otherwise 400 "Send new_name, new_date or both." new_date must 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 400 and 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.
datedateRequired

The holiday’s current date, YYYY-MM-DD.

namestringRequired1-300 characters
The holiday's current name, matched ignoring case.
new_namestringOptional1-300 characters
The new name.
new_datedateOptional

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.

messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error