sites

Update Site Holidays

put/sites/{site_id}/holidays

Request

  • Base URL
    https://api.verdun.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.verdun.ai/sites/{site_id}/holidays
  • Auth
    HTTP bearer

Path parameters

site_idstring required

Request body

Example request

{
  "holidays": [
    {
      "rule": "thanksgiving"
    }
  ]
}

Response

Successful Response

holidaysobject[] required

The stored list, verbatim and in stored order. Each entry is either {'rule': <catalog key>} or {'date': 'YYYY-MM-DD', 'label': str}.

Example response

{
  "holidays": [
    {
      "rule": "thanksgiving"
    },
    {
      "date": "2026-12-24",
      "label": "Christmas Eve half day"
    }
  ],
  "catalog": [
    {
      "rule": "independence_day",
      "label": "Independence Day",
      "next_date": "2027-07-05",
      "actual_date": "2027-07-04"
    }
  ],
  "upcoming": [
    {
      "date": "2026-11-26",
      "label": "Thanksgiving Day",
      "rule": "thanksgiving",
      "actual_date": "2026-11-26"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.