REST API Test Page
Operation
POST
on
/exec/apply
Execute a non-persistent action group
Produces
: application/json
Parameters
Name
Type
Value
Description
optimizeWithProtocolGroups
Request Parameter
Optimize execution: replace individual devices sharing the same command (name + parameters) by matching existing protocol groups to improve execution speed
(JSON)
Request Body
{ "label" : "a managed action group label", "metadata" : "some metadata", "shortcut" : true, "notificationTypeMask" : 1, "notificationCondition" : "ON_SUCCESS", "notificationText" : "a notification text", "notificationTitle" : "a notification title", "targetEmailAddresses" : [ "some target email addresses" ], "targetPhoneNumbers" : [ "some target phone numbers" ], "targetPushSubscriptions" : [ "some target push subscriptions" ], "actions" : [ { "deviceURL" : "device URL (<protocol>://<gatewayId>/<deviceAddress>[#<subsystemId>])", "commands" : [ { "type" : 1, "name" : "a command name", "parameters" : [ "some parameters" ], "sensitiveParametersIndexes" : [ 1 ], "authentication" : "an authentication", "delay" : 1, "lockLevel" : 5 } ] } ] }
*
Json description of the action group to execute
Result
HTTP Status :