📆Update resource booking
Updates a booking for a given resource, start date and duration.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header.
Request Body
The id of the booking to update.
The unique id of your marketplace application
The unique id of a location
The unique id of the location to get the calendar for
start_local
string (date-time)
required
The earliest date to show bookings for. The date and time are parsed in the local time of the passed in location.
The full name of the customer making this booking. Required when “email” is provided.
The email of the customer making this booking. . Required when “fullname” is provided.
The amount of minutes after the start_local time to show data for. Defaults to 60 minutes.
A note to add alongside the booking. Customers will be able to see this note.
A note to add alongside the booking. Only operators will be able to see this note.
Response
200
Example: This resource is already booked. Please choose a different start and end times.
Example: BOOKING_CONFLICT
{
"price": {
"amount": 4.81,
"currency": "USD"
},
"confirmation": {
"confirmed": false,
"message": null,
"booking_id": null
},
"available": false,
"message": "This resource is already booked. Please choose a different start and end times.",
"error_code": "BOOKING_CONFLICT"
}
Example Request
curl -X PUT \
"https://spaces.nexudus.com/api/apps/marketplaceapplications/book" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'