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
Parameter | Status | Description |
---|---|---|
bookingId | Mandatory | The unique identifier of the booking to be updated. |
Payload
Parameter | Status | Description |
---|---|---|
partySize | Optional | Updated number of people for the reservation. |
date | Optional | Updated 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").