POST api/RoomControl/sendCommand?payload={payload}

<strong>post/sendCommand</strong> <br /> The sendCommand method is used to control devices/functions in the room that don't have a dedicated method for example (Butler, Laundry, Minibar, Room Safe, etc.).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
payload

The encrypted payload contains JSON encoded in Hex and encrypted using RSA algorithm. roomObject { RoomObject: "[roomobject]", ObjectIdentifier: "[objectIdentifier]", State: "[objectState]", timeStamp: "[timestamp]" } RoomObjectstringThe device/function you want to control/set.ObjectIdentifierstringThe selector to limit which devices/functions is controlled.StateintegerThe state you want to set.timeStampintTime stamp in epoch time (UTC)

string

Required

Body Parameters

None.

Response Information

Resource Description

A JSON object to handle the success or error of the operation, on the success of the operation the JSON object will be "OK" string. <br /> If there is an error in the process, the JSON will contain the error.

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.