Create a reservation resource exception
Adds a date exception for a resource or for the whole organization.
Endpoint
POST/reservation-resource-exceptions
Body
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | integer | Yes | Your organization ID (the API key's organization). |
exception_type | string | Yes | blocked, special_hours or holiday. |
date | string (YYYY-MM-DD) | Yes | Date affected. |
resource_id | integer | null | No | Resource affected; omit or null for organization-wide. |
start_time, end_time | string | For special_hours | Hours that day, HH:mm. |
reason | string | No | Max 255 characters. |
is_recurring_yearly | boolean | No | Default false. Stored only. |
Request
Close the whole organization on a date:
Shorter hours for one resource:
Response
Returns the created exception object.
json
Errors
| Status | When |
|---|---|
400 Bad Request | Missing required field, invalid exception_type, or date not in YYYY-MM-DD format. |
403 Forbidden | organization_id is not the API key's organization. |
Report an issue with this documentation
Please log in to report issues with our documentation.