Updates an existing Booking 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 Booking-Edit role.
Enums
eBookingRepeatCycle — Repeats values
Value Name 1 Daily 2 Weekly 3 Monthly 4 Yearly 5 FirstOfMonth 6 SecondOfMonth 7 ThirdOfMonth 8 LastOfMonth 9 FourthOfMonth
eRepeatedBookingUpdateAction — WhichBookingsToUpdate values
Value Name 1 UpdateThisBookingOnly 2 UpdateFutureBookingsOnly 3 UpdateAllBookings 4 UpdateNotChargedBookings 5 DeleteAllBookings 6 DeleteBookingsAfterThis 7 DeleteNotChargedBookings 8 RevertAllCharges
Request Body
Required Fields
The Id of the Booking record to update.
Optional Fields
Charge the booking to the customer making it rather than their paying member (if any).
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.
Create a repeating booking series. Create-only: once created, only WhichBookingsToUpdate can be used to update the series. No new bookings can be added to the series.
Repeat cycle. Create-only. See eBookingRepeatCycle enum above.
Action to apply when updating or deleting bookings in a repeated series. This is the only field that can modify a series after creation. See eRepeatedBookingUpdateAction enum above.
Repeat every N periods. Create-only.
Repeat until date. Create-only.
Repeat on Mondays. Create-only.
Repeat on Tuesdays. Create-only.
Repeat on Wednesdays. Create-only.
Repeat on Thursdays. Create-only.
Repeat on Fridays. Create-only.
Repeat on Saturdays. Create-only.
Repeat on Sundays. Create-only.
Admin-set fixed price for the booking, regardless of what extra service (rate) is associated with it.
Coworker Extra Service Price.
Children
Products to include with this booking The number of units of this product to include in the booking.
Whether to invoice this product based on the booking duration in minutes.
Visitors to add to this booking Full name of the visitor. Read-only, resolved from the linked Visitor record..
Email address of the visitor. Read-only, resolved from the linked Visitor record..
Code Examples
curl -X PUT \
"https://spaces.nexudus.com/api/spaces/bookings" \
-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",
"Id": 87654321,
"BookingProducts": [
{
"ProductId": 0,
"Quantity": 0,
"InvoiceInMinutes": false
}
],
"BookingVisitors": [
{
"VisitorFullName": null,
"VisitorEmail": null
}
]
}'
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 booking was updated successfully.
{
"Status" : 200 ,
"Message" : "Booking 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
}