Macros - predefined sequence of responses to certain events. Macros are created on the server and have IDs and names. They are similar to actions with objects, but are not attached to the object.
GET
http://example.com:[port][/somecontext]/secure/actions/
Sample of response:
<actions>
<action>
<description>Start recording by all cameras</description>
<id>macro2</id>
</action>
<action>
<description>Disarm all zones</description>
<id>1</id>
</action>
</actions>
Object has no extra parameters. The list of macros is sufficient.
GET
http://example.com:[port][/somecontext]/secure/actions/macro2/ - getting parameters of macro with macro2 id.
Sample of response:
<action>
<description>Start recording by all cameras</description>
<id>macro2</id>
</action>
PUT
http://example.com:[port][/somecontext]/secure/actions/macro2/execute – request to execute macro with id macro2 on the server.