How can we help?


0 results found


POST /odata/Devices/sendCommandWithMultipleArguments


Sends a command to one or more Devices and enables you to transfer multiple arguments to each of these Devices.

See the following for request and response details ‒

See Also

Request ‒ Devices/sendCommandWithMultipleArguments

Property Type Description Mandatory
deviceIds Array of Strings Specify one or more Device IDs to which to send the command. The deviceId is the identifier property of Device. Y
commandId String The unique identifier that is created by Axonize for each command.

Use the relevant commandId. The commandId is defined in the Product’s command property.

commandArgument Array of Strings Defines an array of one or more arguments of a command to be sent to a Device.

Example Devices/sendCommandWithMultipleArguments Request

curl -X POST \ \

  -H ‘Content-Type: application/json’ \

  -H ‘Authorization: Token’ \

  -H ‘appId: be517533-c4b8-4788-9258-123456789012’

  -d ‘{“commandId”:”561a530f1382732e34611234″,”deviceIds”:[“5add9e5d71da9b06387f1243″],”commandArgument”:[{“name”:”setBrightness”, “value”: “66”}, {“name”:”test1″, “value”: “77”}]}’

Response ‒ Devices/sendCommandWithMultipleArguments

All the same properties in the request are returned in the response. In addition, the response that is returned also contains the following properties –

Property Type Description
appId String The Application to which this Device belongs.

This generated by Axonize and sent in the response to Applications/Post.

createDate, createUser, updateDate,
See Common Response Properties.

Example JSON Devices/sendCommandWithMultipleArguments Response

Status 200 OK


    “successful”: true,

    “information”: “Success”