---
title: "Update status of reservation enquiry by id"
method: PATCH
path: "/v1/reservation-enquiries/{reservationEnquiryId}"
tags: ["reservation-enquiries"]
---

# Update status of reservation enquiry by id

`PATCH /v1/reservation-enquiries/{reservationEnquiryId}`

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

## Path parameters

- `reservationEnquiryId` string, required

## Request body

- UpdateReservationEnquiryData
  - `status` string — The status of the reservation enquiry

## Response `200`

OK

## Other responses

- `400` — Bad request
- `403` — Access denied
- `404` — Invalid reservation enquiry status transition
- `500` — Internal server error

---

[API](https://skmtc.net/quandoo/apis/quandooapidocumentation.md) · [All operations](https://skmtc.net/quandoo/apis/quandooapidocumentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quandoo/quandooapidocumentation/revisions/6863a5956792/schema)
