Operation

Information of the operation

Only accessible with permission of pms.integration.room


table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



PUT



https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property/{propertyId}/room/{roomId}/roomMode



Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue

propertyIdIntegertrue

roomIdIntegertrue


Example request

PUT https://prod.ulysescloud.com/api/v1/chain/1/property/2/room/1/roomMode



Body

The body will be an array of elements of PropertyRoomMode with the property "applied" correctly filled with true or false.


Example body

The body that will be sent in the operation

[{
		"id": 4,
		"name": "Don't disturb",
		"code": "DND",
		"active": true,
		"inactiveReason": null,
		"applied": true
	},
	{
		"id": 5,
		"name": "Service requested",
		"code": "SER",
		"active": true,
		"inactiveReason": null,
		"applied": false
	},
	{
		"id": 6,
		"name": "Cleaning requested",
		"code": "CLE",
		"active": true,
		"inactiveReason": null,
		"applied": true
	}
]


Response

PropertyTypeRequiredDescription
responseApiMessageResponseApiMessagetrueDescription of the response of the success operation

Example response

{
	"httpStatus": "201",
	"userMessage": "Success",
	"technicalMessage": "Success room modes updated",
	"errorCode": "0",
	"moreInfo": "",
	"id": 0,
	"entity": null
}