Skip to main content
GET
/
api
/
spaces
/
bookingavailabilityexceptions
/
{id}
{
  "BusinessId": 123,
  "BusinessName": "<string>",
  "Resources": [
    123
  ],
  "FromTime": "<string>",
  "ToTime": "<string>",
  "Message": "<string>",
  "Active": true,
  "EveryYear": true,
  "ResourceIds": "<string>",
  "ResourceNames": "<string>",
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
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-Read role.

Path Parameters

id
integer
required
The Id of the BookingAvailabilityException record to retrieve.

Code Examples

curl -X GET \
  "https://spaces.nexudus.com/api/spaces/bookingavailabilityexceptions/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

BusinessId
integer
Business Id.
BusinessName
string
Name of the location.
Resources
integer[]
Resources.
FromTime
string
Start date/time of the blocked period.
ToTime
string
End date/time of the blocked period.
Message
string
Message shown to users who attempt to book a blocked resource.
Active
boolean
Whether this exception is currently enforced.
EveryYear
boolean
Whether this exception recurs annually on the same dates.
ResourceIds
string
Comma-separated IDs of blocked resources.
ResourceNames
string
Names of the blocked resources.
Id
integer
Unique record identifier.
UniqueId
string
UUID of the record.
CreatedOn
string
Date and time the record was created (ISO 8601).
UpdatedOn
string
Date and time the record was last updated (ISO 8601).
UpdatedBy
string
Email of the user who last updated this record.
IsNew
boolean
Whether the record was recently created.
SystemId
string
External system identifier.
Example Response
{
  "BusinessId": 0,
  "BusinessName": null,
  "Resources": [],
  "FromTime": "2025-01-15T10:30:00Z",
  "ToTime": "2025-01-15T10:30:00Z",
  "Message": "",
  "Active": false,
  "EveryYear": false,
  "ResourceIds": null,
  "ResourceNames": null,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "BookingAvailabilityException Example",
  "LocalizationDetails": null,
  "CustomFields": null
}