Create Applet Command Without Applet UID
POST/v1/device/:deviceUid/applet/command
Create device applet command by deviceUid which will be delivered to the device's current active applet, whichever applet that is.
Command may contain any number of custom properties. The only required one is type which is used to identify the command.
Originally the command was sent using the commandPayload field, which is now deprecated. The command field should be used instead.
Once the command is sent, it can be received inside the applet using the following customField:
sos.command.onCommand((commandEvent) => {
if (commandEvent.command.type === 'TestCommand') {
console.log(commandEvent.command.customField)
}
});
For more information, refer to the JS API documentation.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
deviceUid | string | required | Device unique identification |
Request
Responses
- 202
- 402
Accepted
Response Headers
Location
URL of the created resource.
Example:
https://api.signageos.io/v1/device/42e454d7db4dd54660a4250888b0c73414ef75e33077c51453142/applet/command/8f1a9b2c3d4e5f60Link
Same URL as Location, wrapped in angle brackets.
Example:
<https://api.signageos.io/v1/device/42e454d7db4dd54660a4250888b0c73414ef75e33077c51453142/applet/command/8f1a9b2c3d4e5f60>Payment Required - Feature entitlement missing