Skip to main content
PUT
/
api
/
spaces
/
cancelledbookings
{
  "Status": 123,
  "Message": "<string>",
  "Value": "<any>",
  "WasSuccessful": true,
  "Errors": [
    {
      "AttemptedValue": "<any>",
      "Message": "<string>",
      "PropertyName": "<string>"
    }
  ]
}
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

ValueName
0Unknown
1NoLongerNeeded
2TooExpensive
3BadPreviousExperience
4RebookedForADifferentTime
5FailedToPayUpfront
6Integration
7Other
8NotCheckedIn
9MarketPlace

Request Body

Required Fields

Id
integer
required
The Id of the CancelledBooking record to update.
ResourceId
integer
required
Resource Id.
FromTime
string
required
Booking start time.
ToTime
string
required
Booking end time.
CancelledOn
string
required
Date and time when the booking was cancelled.

Optional Fields

FloorPlanDeskId
integer
Floor Plan Desk Id.
CoworkerId
integer
Coworker Id.
ExtraServiceId
integer
Extra Service Id.
Notes
string
Notes.
InternalNotes
string
Internal Notes.
ChargeNow
boolean
Charge Now.
InvoiceNow
boolean
Invoice Now.
InvoiceThisCoworker
boolean
Invoice This Coworker.
DoNotUseBookingCredit
boolean
Do Not Use Booking Credit.
PurchaseOrder
string
Purchase Order.
DiscountCode
string
Discount Code.
LastNotificationTime
string
Last Notification Time.
GoogleCalendarId
string
Google Calendar Id.
GoogleEventId
string
Google Event Id.
Office365EventId
string
Office365Event Id.
PublicGoogleEventId
string
Public Google Event Id.
Tentative
boolean
Tentative booking. Must be approved by an administrator before confirmed or charged. Tentative bookings still block the calendar.
Online
boolean
Online.
TeamsAtTheTimeOfBooking
string
Teams At The Time Of Booking.
TariffAtTheTimeOfBooking
string
Tariff At The Time Of Booking.
RepeatSeriesUniqueId
string
Repeat Series Unique Id.
RepeatBooking
boolean
Repeat Booking.
Repeats
integer
Repeats. See eBookingRepeatCycle enum above.
WhichBookingsToUpdate
integer
Which Bookings To Update. See eRepeatedBookingUpdateAction enum above.
RepeatEvery
integer
Repeat Every.
RepeatUntil
string
Repeat Until.
RepeatOnMondays
boolean
Repeat On Mondays.
RepeatOnTuesdays
boolean
Repeat On Tuesdays.
RepeatOnWednesdays
boolean
Repeat On Wednesdays.
RepeatOnThursdays
boolean
Repeat On Thursdays.
RepeatOnFridays
boolean
Repeat On Fridays.
RepeatOnSaturdays
boolean
Repeat On Saturdays.
RepeatOnSundays
boolean
Repeat On Sundays.
Reminded
boolean
Reminded.
MrmReminded
boolean
Mrm Reminded.
OverridePrice
number
Override Price.
Invoiced
boolean
Whether the booking had been charged. When true, a charge (CoworkerExtraService) had been posted to the customer account.
InvoiceDate
string
Invoice Date.
BookingNumber
integer
Booking Number.
KisiKeyId
integer
Kisi Key Id.
StartScheduledJobId
string
Start Scheduled Job Id.
EndScheduledJobId
string
End Scheduled Job Id.
Billed
boolean
Billed.
FromTimeLocal
string
From Time Local.
ToTimeLocal
string
To Time Local.
InvoiceDateLocal
string
Invoice Date Local.
CoworkerInvoiceId
integer
Coworker Invoice Id.
CoworkerInvoiceNumber
string
Coworker Invoice Number.
CoworkerInvoicePaid
boolean
Coworker Invoice Paid.
CoworkerInvoiceDraft
boolean
Coworker Invoice Draft.
CoworkerInvoiceVoid
boolean
Coworker Invoice Void.
CoworkerInvoiceCreditNote
boolean
Coworker Invoice Credit Note.
CoworkerExtraServiceIds
string
Coworker Extra Service Ids.
CoworkerExtraServicePrice
number
Coworker Extra Service Price.
CoworkerExtraServiceCurrencyCode
string
Coworker Extra Service Currency Code.
CoworkerExtraServiceChargePeriod
integer
Coworker Extra Service Charge Period.
CoworkerExtraServiceTotalUses
integer
Coworker Extra Service Total Uses.
IncludeZoomInvite
boolean
Include Zoom Invite.
ZoomEventData
string
Zoom Event Data.
CheckedInAt
string
Checked In At.
CancelIfNotPaid
boolean
Cancel If Not Paid.
CancelIfNotCheckedIn
boolean
Cancel If Not Checked In.
MaxOccupancy
integer
Max Occupancy.
LastMinutePriceAdjustment
number
Last Minute Price Adjustment.
DynamicPriceAdjustment
number
Dynamic Price Adjustment.
PriceFactorLastMinute
number
Price Factor Last Minute.
PriceFactorDemand
number
Price Factor Demand.
Office365AdminEventId
string
Office365Admin Event Id.
CancellationReason
integer
Reason the booking was cancelled, e.g. NoLongerNeeded, TooExpensive, or NotCheckedIn. See eBookingCancellationReason? enum above.
CancelledBy
string
Name or identifier of the user who cancelled the booking.
CancellationReasonDetails
string
Additional free-text details explaining the cancellation reason.
Price
number
Booking price.
OriginalBookingId
string
Original Booking Id.

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

Status
integer
HTTP status code. 200 on success.
Message
string
A human-readable message confirming the update.
Value
object
Contains the Id of the updated record.
WasSuccessful
boolean
true if the cancelledbooking was updated successfully.
Errors
array
null on success.
Example Response
{
  "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

Message
string
A summary of the validation error(s), in the format PropertyName: error message.
Value
any
null on validation failure.
Errors
object[]
Array of validation errors.
WasSuccessful
boolean
false when the request fails validation.
Example Response
{
  "Message": "FromTime: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "FromTime"
    }
  ],
  "WasSuccessful": false
}