Executes a command on one or more BookingAvailabilityException records. Use the Commands endpoint to discover available commands and their required parameters.
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-Update role.
Request Body
List of BookingAvailabilityException record Ids to execute the command on.
If the command requires parameters, provide them as an array of objects with Name and Value fields.
Code Examples
curl -X POST \
"https://spaces.nexudus.com/api/spaces/bookingavailabilityexceptions/runcommand" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"Key": "COMMAND_KEY_1",
"Ids": [87654321, 87654322],
"Parameters": [
{
"Name": "Parameter name",
"Value": "Parameter value"
}
]
}'
Response
200
HTTP status code. 200 on success.
A human-readable message confirming the command was executed.
Contains details about the command execution result.
true if the command was executed successfully.
{
"Status": 200,
"Message": "The command was run correctly.",
"Value": null,
"OpenInDialog": false,
"OpenInWindow": false,
"RedirectURL": null,
"JavaScript": null,
"UpdatedOn": "2025-01-15T12:00:00Z",
"UpdatedBy": "admin@example.com",
"Errors": null,
"WasSuccessful": true
}