---
title: "Block dates (add a closure)"
method: POST
path: "/venues/{venueId}/closures"
tags: ["Venues"]
---

# Block dates (add a closure)

`POST /venues/{venueId}/closures`

## Request

- Base URL: `https://joinways.app/api/v1`
- URL: `https://joinways.app/api/v1/venues/{venueId}/closures`
- 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`)

Blocks the venue (or space) for a date range, whole days or between two times. Public holidays go through `POST /venues/{venueId}/holidays`. **Role permission:** `settings.manage`.

## Headers

- `Idempotency-Key` string

## Request body

- ClosureCreate
  - `startDate` string, date, required
  - `endDate` string, date, required: On or after `startDate`.
  - `startTime` string, nullable: HH:MM. Give both times or neither (whole days); `endTime` after `startTime`.
  - `endTime` string, nullable
  - `reason` string, nullable
  - `color` string, nullable
  - `closureType` 'manual': Only `manual`; public holidays go through `POST /venues/{venueId}/holidays`.

## Response `201`

The created closure.

- object
  - `closure` Closure, required
    - `id` string, uuid
    - `startDate` string, date
    - `endDate` string, date
    - `startTime` string, nullable: HH:MM; null = whole days.
    - `endTime` string, nullable
    - `reason` string, nullable
    - `color` string, nullable
    - `closureType` 'manual' | 'holiday': `holiday` = imported public holiday.
    - `sourceLocationId` string, uuid: Where the closure is stored (the parent venue for an inherited one).

## 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)
