Skip to content
API PlatformDevelopers
PATCH/v1/business-hours/{business_hours_id}/exceptions/{exception_id}beta

Change a holiday or special day

Needs
Create and edit business hours, holidays and special opening days (hours:write)
Plan
Any plan with API access
Limits
60 a minute per key
Dry run
Yes — every check runs with ?dry_run=true, nothing changes
Undo
Change it back.

Changes one exception: its date (or yearly month/day), its special hours, its note, or opens a closed day (open: true with hours). A one-off date cannot become yearly or the reverse, and an open day cannot be closed this way: remove it and add the new one.

Try it

Path

The calendar id (`id` from List business hours).

The exception id (`exceptions[].id` from Get business hours).

Body

A one-off date, YYYY-MM-DD (e.g. 2026-12-25). Give date OR yearly.

yearly

Every year on this month/day, e.g. {"month":12,"day":25}. Give date OR yearly.

1–12.

1–31.

false (default) = closed all day, a holiday; true = open with special hours (give hours).

When open: the hours that day, e.g. ["10:00-14:00"] (24-hour HH:MM-HH:MM).

Label shown to your team and in holiday notices, e.g. "Christmas Day".

Protects against doing it twice if you retry: a retry with the same key gets the first answer back instead of running again.

Test mode (dry run): nothing will change
Turns test mode off for this page only. It switches back when you leave the page.

Code and response

curl -X PATCH 'https://api.wa-api.cloud/v1/business-hours/14/exceptions/303?dry_run=true' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "hours": [
    "09:00-14:00"
  ]
}'

The code reads your key from $API_KEY.

Parameters

Parameters
FieldTypeWhat it is
business_hours_idrequiredstring | integer · pathThe calendar id (id from List business hours).
exception_idrequiredstring | integer · pathThe exception id (exceptions[].id from Get business hours).

Body

Body fields
FieldTypeWhat it is
datestringA one-off date, YYYY-MM-DD (e.g. 2026-12-25). Give date OR yearly.0–10 characters
yearlyobjectEvery year on this month/day, e.g. {"month":12,"day":25}. Give date OR yearly.
monthrequiredinteger1–12.1–12
dayrequiredinteger1–31.1–31
openbooleanfalse (default) = closed all day, a holiday; true = open with special hours (give hours).
hoursarray of stringWhen open: the hours that day, e.g. ["10:00-14:00"] (24-hour HH:MM-HH:MM).0–12 items
notestringLabel shown to your team and in holiday notices, e.g. "Christmas Day".0–255 characters

Headers

Headers
FieldTypeWhat it is
AuthorizationrequiredheaderBearer $API_KEY — your API key.
Api-VersionheaderThe API version to use, e.g. 2026-10-01. Default: the version your key is pinned to.one of: 2026-10-01 · pattern ^\d{4}-\d{2}-\d{2}$
Idempotency-KeyheaderAny unique string (8–128 characters). A retry with the same key returns the first answer instead of running twice. Kept 24 hours.pattern ^[A-Za-z0-9._:-]+$ · 8–128 characters

Response 200

The exception as saved.

Response fields
FieldTypeWhat it is
exceptionrequiredobject
idrequiredstring
daterequiredstring or nullOne-off date (YYYY-MM-DD), or null for a yearly one.
yearlyrequiredobject or nullRepeats every year on this month/day, or null.
monthrequiredinteger-9007199254740991–9007199254740991
dayrequiredinteger-9007199254740991–9007199254740991
recurrence_rulerequiredstring or nullThe stored rule (FREQ=YEARLY;BYMONTH=…;BYMONTHDAY=…).
openrequiredbooleanfalse = closed all day (a holiday); true = open with the special hours below.
hoursrequiredarray of stringSpecial hours on an open day ("HH:MM-HH:MM"); [] for a closed day.
noterequiredstring or nullLabel, e.g. "Christmas Day".
dry_runbooleantrue when this was a dry run: every check ran and nothing changed.

Errors

Errors are application/problem+json. Branch on code.

StatusCodeWhen
400invalid_input

A field is missing or has the wrong format. errors[] points at each field.

401unauthenticated

The Authorization header is missing, the key is unknown, expired or revoked, or the request came from an address outside the key's IP allowlist (checked on every operation, before anything runs).

403entitlement_required

The workspace's plan does not include API access (api_access).

403forbidden

The key's user is not a manager and does not have the manage-SLA permission.

403insufficient_scope

The key does not have the permission this operation needs. Checked before the body and headers: without the permission, this is the answer whatever was sent.

404not_found

No calendar with this id in this workspace.

409conflict

Also returned while a request with the same Idempotency-Key is still running.

429rate_limited

The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for Retry-After seconds (always sent).

503upstream_unavailable

A service behind the API is briefly unavailable. Safe to retry with backoff.

504timeout

The change did not finish in time. Retry with the same Idempotency-Key: it never runs twice.

Examples

Longer half day

Request body

{
  "hours": [
    "09:00-14:00"
  ]
}

Response 200

{
  "exception": {
    "id": "303",
    "date": "2026-12-31",
    "yearly": null,
    "recurrence_rule": null,
    "open": true,
    "hours": [
      "09:00-14:00"
    ],
    "note": "Half day"
  }
}

Operation path

The same operation is also at POST /v1/ops/business_hours_exceptions_update, with every field in the JSON body.