Go to documentation repository
PUT http://IP address:port/web2/secure/configuration/{objectClass}:{id}/state/actions/command/execute
{ } //mandatory request body
Note
To avoid the 415 Unsupported Media Type error, the request must contain a body or an empty body { } in JSON format.
Parameter | Required | Description |
|---|---|---|
| objectClass | Yes | Name of object class |
| id | Yes | Object ID |
| command | Yes | Command, for example, DISARM Attention! The command name must be in uppercase |
PUT http://127.0.0.1:8085/web2/secure/configuration/GRAY:2/state/actions/DISARM/execute
{ } //mandatory (empty) request body
PUT http://1:1@127.0.0.1:8085/web2/secure/configuration/SLAVE:A-KHAGOZHEEV/state/actions/ACTIVATE_DISPLAY/execute
{
"display_id": "2" //switches Display, mandatory request body
}