Skip to navigation

Add Holidays

Adds holidays to your company’s holiday list. Shared rules: see Writing data.

  • Send 1 to 50 holidays per request. date must 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, use GET /attendance/holiday-list.
  • Needs the Holiday Lists plan feature.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
holidayslist of objectsRequired

Holidays to add (1 to 50).

Response

The holidays were saved.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error