Skip to main content
PUT
Update BookingAvailabilityException
Updates an existing BookingAvailabilityException record. You must include the Id of the record to update along with all required fields.

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-Edit role.

Request Body

Required Fields

integer
required
The Id of the BookingAvailabilityException record to update.
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.
integer[]
The added resources value for this booking availability exception.
integer[]
The removed resources value for this booking availability exception.
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 update.
object
Contains the Id of the updated record.
boolean
true if the bookingavailabilityexception was updated 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