/
Assign Room to ReservationRoomStay [POST]

Assign Room to ReservationRoomStay [POST]

Operation

This endpoint allow to the user to assign a Room to a ReservationRoomStay.

POST
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/reservationRoomStay/{reservationRoomStayId}/assignRoom


Request

PropertyTypeRequiredType parameterDefault valueDescription

chainId

Integertruepath parameter

propertyIdIntegertruepath parameter

reservationRoomStayIdIntegertruepath parameter

Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/reservationRoomStay/1/assignRoom


Body

An element of type Room.

Example body

{
	"id": 1,
	"code": "101",
	"name": "R101",
	"roomSpaceStatusType": null
}

Response

A success or error message.

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success Room added to ReservationRoomStay",
  "errorCode": "0",
  "id": 1
}

Related content