Go to documentation repository
PUT http://IP- address:port/web2/secure/configuration/{objectClass}:{id}/state/actions/command/execute
...
| Code Block | ||
|---|---|---|
| ||
{ } //mandatory request body |
| Info | ||
|---|---|---|
| ||
To avoid the 415 Unsupported Media Type error, the request must contain a body or an empty body { } in JSON format. |
Parameter | Is requiredRequired | Description |
|---|---|---|
| objectClass | Yes | Object Name of object class ID |
| 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
...
| Code Block | ||
|---|---|---|
| ||
{ } //mandatory (empty) request body |
PUT http://1:1@127.0.0.1:8085/web2/secure/configuration/SLAVE:A-KHAGOZHEEV/state/actions/ACTIVATE_DISPLAY/execute
| Code Block |
|---|
{
"display_id": "2" //switchswitches Display
, mandatory request body
} |