Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General request format:

PUT http://IP- address:port/web2/secure/configuration/{objectClass}:{id}/state/actions/command/{CMD}/execute

...

execute

Code Block
languagego
{ } //mandatory request body
Info
titleNote

To avoid the 415 Unsupported Media Type error, the request must contain a body or an empty body { } in JSON format.

Request parameters:

Parameter

Is requiredRequired

Description

objectClassYesObject Name of object class ID
idYesObject ID
CMDcommandYes

Command, for example, DISARM

Attention! The command name must be in uppercase.

...

Request example:

PUT http://127.0.0.1:8085/web2/secure/configuration/GRAY:2/state/actions/DISARM/execute

Code Block
languagego
{ } //mandatory (empty) request body

Example of a request to set a new value for a parameter:

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" //switches Display, mandatory request body
 }