Skip to main content
POST
Create BookingAvailabilityException
A BookingAvailabilityException blocks one or more Resources from being booked during a specific date/time window. When a user tries to book a blocked resource, they see the configured Message instead of available time slots. Use exceptions for holidays, maintenance periods, or any other reason a resource should be temporarily unavailable. Set EveryYear to true for recurring annual closures (e.g. public holidays).

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the BookingAvailabilityException-Create role.

Request Body

Required Fields

integer
required
ID of the business linked to this record.
string
required
Start date/time of the blocked period.
string
required
End date/time of the blocked period.
string
required
Message shown to users who attempt to book a blocked resource.

Optional Fields

integer[]
List of resources linked to this record.
boolean
Whether this exception is currently enforced.
boolean
Whether this exception recurs annually on the same dates.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the bookingavailabilityexception was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response