Updates an existing CancelledBooking 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 CancelledBooking-Edit role.
Enums
eBookingCancellationReason
Value Name 0 Unknown 1 NoLongerNeeded 2 TooExpensive 3 BadPreviousExperience 4 RebookedForADifferentTime 5 FailedToPayUpfront 6 Integration 7 Other 8 NotCheckedIn 9 MarketPlace
Request Body
Required Fields
The Id of the CancelledBooking record to update.
Date and time when the booking was cancelled.
Optional Fields
Do Not Use Booking Credit.
Tentative booking. Must be approved by an administrator before confirmed or charged. Tentative bookings still block the calendar.
Teams At The Time Of Booking.
Tariff At The Time Of Booking.
Repeats. See eBookingRepeatCycle enum above.
Which Bookings To Update. See eRepeatedBookingUpdateAction enum above.
Whether the booking had been charged. When true, a charge (CoworkerExtraService) had been posted to the customer account.
CoworkerInvoiceCreditNote
Coworker Invoice Credit Note.
Coworker Extra Service Ids.
Coworker Extra Service Price.
Coworker Extra Service Currency Code.
Coworker Extra Service Charge Period.
Coworker Extra Service Total Uses.
Cancel If Not Checked In.
LastMinutePriceAdjustment
Last Minute Price Adjustment.
Dynamic Price Adjustment.
Price Factor Last Minute.
Reason the booking was cancelled, e.g. NoLongerNeeded, TooExpensive, or NotCheckedIn. See eBookingCancellationReason? enum above.
Name or identifier of the user who cancelled the booking.
CancellationReasonDetails
Additional free-text details explaining the cancellation reason.
Code Examples
curl -X PUT \
"https://spaces.nexudus.com/api/spaces/cancelledbookings" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResourceId": 0,
"FromTime": "2025-01-15T10:30:00Z",
"ToTime": "2025-01-15T10:30:00Z",
"CancelledOn": "2025-01-15T10:30:00Z",
"Id": 87654321
}'
Response
200
HTTP status code. 200 on success.
A human-readable message confirming the update.
Contains the Id of the updated record.
true if the cancelledbooking was updated successfully.
{
"Status" : 200 ,
"Message" : "CancelledBooking was successfully updated." ,
"Value" : {
"Id" : 87654321
},
"OpenInDialog" : false ,
"OpenInWindow" : false ,
"RedirectURL" : null ,
"JavaScript" : null ,
"UpdatedOn" : "2025-01-15T10:30:00Z" ,
"UpdatedBy" : "admin@example.com" ,
"Errors" : null ,
"WasSuccessful" : true
}
400
A summary of the validation error(s), in the format PropertyName: error message.
null on validation failure.
Array of validation errors. The value that was submitted for the field, or null if missing.
The validation error message.
The name of the property that failed validation.
false when the request fails validation.
{
"Message" : "FromTime: is a required field" ,
"Value" : null ,
"Errors" : [
{
"AttemptedValue" : null ,
"Message" : "is a required field" ,
"PropertyName" : "FromTime"
}
],
"WasSuccessful" : false
}