Skip to content
Last updated

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 (ISO 8601 format).

Example Request

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

Example Response

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

Response Definitions

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