Skip to main content

Update Booking

This endpoint allows updating an existing booking. The booking must be in a pending or confirmed state. Updates can include changes to party size, date, notes, or other details.

Endpoint

PUT https://partner-domain.com/v1/mozrest/booking/{bookingId}

URL Parameters

ParameterStatusDescription
bookingIdMandatoryThe unique identifier of the booking to be updated.

Payload

ParameterStatusDescription
partySizeOptionalUpdated number of people for the reservation.
dateOptionalUpdated date and time of the reservation as a UTC Unix timestamp (integer, e.g. 1639665000).
areaIdOptionalUpdated Area ID for location within the venue if applicable. ID in Partner's system

Example Request

curl PUT "https://partner-domain.com/v1/mozrest/booking/{bookingId}" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"partySize": 2,
"date": 1639665000,
"areaId": "8123477f-4630-404f-a7fb-eec13fe4cd37"
}'

Example Response

{
"id": "60e890aca5f07b6ee5b950b1",
"status": "confirmed"
}

Response Definitions

  • id: Unique identifier for the booking.
  • status: Status of the booking (e.g., "confirmed").