Update holiday calendar

API endpoint to rename a holiday calendar and replace its non-banking dates.
With dateFrom and/or dateTo (yyyy-MM-dd, inclusive) only the active dates inside the window are replaced; dates outside it are untouched. Every listed date must lie inside the window, and a missing bound leaves that side open. Use the window for long-lived calendars, for example one year at a time.
Without the window the list replaces ALL active dates of the calendar: dates that are not listed, including dates outside the range of a previous GET filter, are removed. An empty list removes every date.
The limit of 2000 dates applies per request.
Dates before the center's system date cannot be added, removed or renamed, also inside the window; such a request is rejected. Unchanged past dates may be sent back as they are.

Body Params

Data Contract used to update a holiday calendar

int32
required

Id of the holiday calendar

string
required
length ≥ 1

Name of the holiday calendar (maximum 50 characters)

date-time | null

Start of the replace window (yyyy-MM-dd, inclusive). Optional. A time or UTC offset may be sent but is ignored: the calendar day written by the caller is used. When set, only active dates on or after this day are replaced.

date-time | null

End of the replace window (yyyy-MM-dd, inclusive). Optional. A time or UTC offset may be sent but is ignored: the calendar day written by the caller is used. When set, only active dates on or before this day are replaced.

nonBankingDates
array of objects
required

The non-banking dates to keep. Without a window it replaces ALL active dates of the calendar; dates not listed are removed. With a window it replaces only the active dates inside the window, and every listed date must lie inside it. Dates must be unique, names are limited to 100 characters and the list holds at most 2000 dates. The list can be empty.

nonBankingDates*
Headers
string
required
Defaults to v1

API versioning

uuid
required

Correlates HTTP requests between a client and server

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

500

Internal Server Error

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json