latestSwagger 2.02026-08-172560124.6 KB
6863a5956792
reservation-enquiries
Update status of reservation enquiry by id
This endpoint allows to update the status of a reservation enquiry with the given ID. The allowed status transitions are as following:
- NEW --> IN_PROGRESS --> {ACCEPTED/REJECTED}
- ACCEPTED <--> REJECTED
The endpoint will return HTTP 404 - Not Found if the reservation enquiry with the specified id could not be found.
The endpoint will return HTTP 400 - Bad Request if the specified status is wrong.
The endpoint will return HTTP 409 - Conflict if the status change is invalid.
The endpoint will return HTTP 403 - Forbidden if the agent is not authenticated, if the agent doesn't have permissions or the reservation enquiry doesn't belong to the authenticated agent.
####Request:
- reservationEnquiryId: Agent-specific ID of the requested reservation enquiry
- reservationEnquiryData: The new enquiry status
patch/v1/reservation-enquiries/{reservationEnquiryId}
Path parameters
reservationEnquiryIdstring required
Id of the reservation enquiry
Request body
Response
OK