# Update roomstay statuses on a specified booking. This endpoint allows you to update the statuses of room stays associated with a specific booking within the Property Management System (PMS). Room stay statuses can include various states such as CONFIRMED, CHECKED_IN, CHECKED_OUT, etc. Updating these statuses helps in managing the booking lifecycle and ensuring accurate tracking of room occupancy and availability. Endpoint: PUT /api/v3/bookings/{bookingId}/updateStatuses Version: 3.0.4 Security: OAuth2 ## Path parameters: - `bookingId` (integer, required) ID of the booking ## Query parameters: - `user` (object, required) ## Request fields (application/json): - `statusUpdates` (array, required) The status updates for the room stays, add one per room stay - `statusUpdates.roomStayId` (integer, required) The id of the room stay - `statusUpdates.status` (string, required) The status of the room stay, must be one of PENDING, CONFIRMED, CHECKED_IN, CHECKED_OUT, CANCELLED, LOST Enum: "PENDING", "CONFIRMED", "CHECKED_IN", "CHECKED_OUT", "CANCELLED", "LOST" ## Response 200 fields (application/json): - `content` (array) - `content.roomStayId` (integer) The id of the room stay - `content.success` (boolean) The success status of the update - `content.errorMessage` (string) The error message if the update failed - `page` (object) - `page.size` (integer) - `page.totalElements` (integer) - `page.totalPages` (integer) - `page.number` (integer)