Update a restaurant reservation
const url = 'https://public.api.barestho.com/api/v1/partnership/restaurants/example/reservations/example/';const options = {method: 'PATCH', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://public.api.barestho.com/api/v1/partnership/restaurants/example/reservations/example/ \ --header 'Authorization: Basic <credentials>'Partially updates a reservation. Only the fields included in the request body are modified; all other fields retain their current values.
Authorizations
Section titled βAuthorizations βParameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters βThe unique identifier of the reservation to update.
The unique identifier of the restaurant that owns the reservation.
Responses
Section titled β Responses βThe updated reservation object.
Partial representation of a reservation used for PATCH requests. All fields are optional; only the fields present in the request body will be updated. Refer to PartnerRestaurantReservation for full field semantics.
object
Unique numeric identifier for the reservation. Read-only.
Updated first name of the guest.
Updated last name of the guest.
Updated email address of the guest.
Updated phone number of the guest.
Updated reservation start time (ISO 8601). Changes may affect availability.
Reservation duration. Recalculated by the server if start_time changes.
Updated adult guest count. Must be between 1 and 50.
Updated child guest count. Must be between 0 and 50.
Updated guest or partner comment. Set to null to clear.
Set to true to cancel the reservation. Triggers cancelled_at automatically.
Cancellation timestamp. Managed by the server.
Set to true to confirm the reservation (asynchronous flow).
Confirmation timestamp. Managed by the server.
Updated confirmation mode. Refer to PartnerRestaurantReservation.confirmation_mode.
Set to true to mark the guest as arrived. Triggers arrived_at automatically.
Arrival timestamp. Managed by the server.
Set to true to record a no-show. Triggers no_show_at automatically.
No-show timestamp. Managed by the server.
Updated BCP 47 language tag for the guest.
Updated arbitrary metadata object. Replaces the existing metadata entirely when provided.
object
Example
{ "confirmation_mode": "CONFIRMATION_MODE_SYNCHRONOUS"}Not found.