Jetstream API
...
API Endpoints
Device Commands

Set a Device's Policy Parameters

8min

About

Instruct the specified device to set/sync its configuration parameters and values to user provided parameters and values, which are defined within the Parameters property of the Add a Policy to a Device request. Complete documentation on a device’s configuration parameters and values can be found on its device types page.

Command Type

Device is Online

Device is Offline

Synchronous, Queueable

Immediate execution, Immediate results and Published results

Queued execution, Published results

Parameters

Property

Location

Details

AccessKey

string Required Unique

Header

The access key for your user account.

This value is a 36-character GUID provided in your user profile.

DeviceName

string Required Unique

URL

The name of the device.

This value has a max length of 128 ASCII characters.

This value must adhere to this regular expression: ^[a-zA-Z0-9-_,. ]*$

Example

Request URL

POST https://api.jetstreamrfid.com/3/devices/{DeviceName}/policy/sync

Request Body

None Required

Response Code

200 OK

Response Body

{ "Id": 0, "Name": "Voyc00PsAI", "Parameters": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "LastPolicyUpdate": "2024-03-07T22:04:31.121Z", "LastPolicySync": "2024-03-07T22:04:31.121Z" }

Published CommandQueuedEvent

{ "Device": "MyDeviceName", "CommandId": "2bf00848-b06a-4820-86fc-58c12e08ee3e", "CommandName": "SetConfigValuesCommand", "URI": "/3/Devices/MyDeviceName/policy/sync", "Verb": "Post", "User": "MyUserName", "Parameters": [ { "Key": "aggregateeventscancount", "Value": "4" } ], "Type": "CommandQueuedEvent", "EventId": "f3df515b-c53a-4b3b-b3e9-01ffe6ffd8f3", "EventTime": "2018-05-19T01:16:21Z", "Version":3 }

Published CommandCompletionEvent

{ "CommandId": "2bf00848-b06a-4820-86fc-58c12e08ee3e", "CommandName": "SetConfigValuesCommand", "OutputParameterList": [], "ExceptionList": [], "Device": "MyDeviceName", "ReceivedTime": "2018-05-19T01:16:23Z", "Type": "CommandCompletionEvent", "EventId": "93723c89-cb44-44f0-8d86-87ede0fb3ba6", "EventTime": "2018-05-19T01:16:19Z" "Version":2 }

Version Changes

Added Version Property to Events.