---
title: "Import or clear public holidays"
method: POST
path: "/venues/{venueId}/holidays"
tags: ["Venues"]
---

# Import or clear public holidays

`POST /venues/{venueId}/holidays`

## Request

- Base URL: `https://joinways.app/api/v1`
- URL: `https://joinways.app/api/v1/venues/{venueId}/holidays`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://joinways.app/oauth/authorize`, token URL `https://joinways.app/api/oauth/token`, scopes: `mcp.write`)

`enable: true` imports a country's public holidays of a year as closures (`closureType: holiday`); `enable: false` clears them. **Role permission:** `settings.manage`.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `country` string, required: ISO 3166 alpha-2 or alpha-3 code.
  - `year` integer, required
  - `enable` boolean, required

## Response `200`

Done.

- object
  - `enabled` boolean
  - `affectedRows` integer: Closures created or removed.

## Other responses

- `400`: Validation failed (`invalid_request`). For a body that fails the schema, `details` holds `formErrors` and `fieldErrors`.
- `401`: Missing, invalid, expired or revoked bearer token (`unauthorized`).
- `403`: `forbidden`: the token lacks the scope, its owner's role lacks the permission named by the operation, or the workspace has neither the Pro plan nor a trial (`details.reason` `plan_not_eligible`).
- `404`: Not found in this workspace, or the id of the path is not a UUID (`not_found`).
- `429`: Too many requests (`rate_limited`). `details.reason`: `per-ip`, `per-account-minute`, `per-account-day`, or `email_rate_limited` (email budget). Always carries `Retry-After`: wait that many seconds.

---

[API](https://skmtc.dev/joinways/apis/joinways-public-api.md) · [All operations](https://skmtc.dev/joinways/apis/joinways-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/joinways/apis/joinways-public-api/revisions/39e84309953e?raw)
