Replace the holidays of a year (editor; audited)
Replaces the full national bank holiday calendar of a year. On a holiday there is no operating window (transfer creation responds 422 TED-0021). An outdated calendar makes the window undetermined (503 TED-0022), so keep the current year and the next year loaded.
All dates must belong to the year you send. The change is audited. Editor operation. Requires X-Idempotency.
If the audit trail cannot record the change, TED Lerian refuses it with 503 TED-9002 and changes nothing: only the audit trail keeps the previous value. Reads stay available.
Autorizações
JWT token that the Lerian Access Manager issues for your institution. Send it in Authorization: Bearer <token> on every call (except the public health probes). The tenant never comes from the body, the query, or the path. Each operation requires a role with the matching permission (see the API overview). Without it, 403 TED-0071. Missing, invalid, or expired token: 401 TED-0070.
Cabeçalhos
Replay window of the idempotency key, in seconds. Default 300 (5 minutes) when missing or invalid. Values outside 30 s to 7 days are adjusted to these limits. Only the value of the FIRST request for a key counts. A change to X-TTL on retries has no effect. The window sets how long the response is replayed.
x >= 1Idempotency key of the change. Required: a request without it is refused with 400 TED-0011.
Correlation identifier of this request (UUID). Optional: when you omit it, or when the value is not a well-formed UUID, the platform creates a UUID and returns it in the X-Request-Id header of the response. The resolved identifier goes to the logs, spans, and audit events of this request. Keep it to open a support ticket.
Corpo
National bank holiday calendar of a year. On a holiday there is no operating window.
Full list of holidays for the year — the operation replaces the previous list.
Year of the calendar. All dates must belong to it.
2000 <= x <= 2100Instant (UTC) of the last write. Ignored on write.
Resposta
Calendar of the year replaced and audited. The body returns the current calendar.
National bank holiday calendar of a year. On a holiday there is no operating window.
Full list of holidays for the year — the operation replaces the previous list.
Year of the calendar. All dates must belong to it.
2000 <= x <= 2100Instant (UTC) of the last write. Ignored on write.

