Jetstream API
...
API Endpoints
Policy Configuration
Create a Policy
6min
about add a policy to your jetstream application for managing a device's configuration values (the configuration parameters are defined by the device’s definition) a policy may be added to a device to apply its configuration settings 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 getting started docid\ bbifqiuixnd5iafmrebbi id ulong unique body response the id assigned to the newly created policy this value is generated by jetstream – do not define it in requests name string required unique body request response the name of the policy this value has a max length of 128 ascii characters this value must adhere to this regular expression ^\[a za z0 9 , ] $ devicedefinition string required body request response the name of the device definition associated with the policy this value is one of the device definitions retrieved by the get all device definitions docid\ zre5zpbxavj78epzuxb84 request this value has a max length of 128 ascii characters this value must adhere to this regular expression ^\[a za z0 9 , ] $ parameters dictionary(string,string) required body request response the parameters and values associated with the policy all parameters defined in the associated device definition must be defined all values defined must be of the type (e g , int, bool, string, float, datetime) defined in the associated device definition example request url post https //api jetstreamrfid com/3/policies request body { "name" "mypolicyname", "devicedefinition" "ts032, cabinet, us, uhf, gf, 7 9 cu ft", "parameters" { "aggregateeventscancount" 2, "aggregateeventscantime" 10, "antenna1rxsensitivity" 50, "antenna1txpower" 30, "antenna2rxsensitivity" 50, "antenna2txpower" 30, "antenna3rxsensitivity" 50, "antenna3txpower" 30, "antenna4rxsensitivity" 50, "antenna4txpower" 30, "commandpollinterval" 60, "dns" "0 0 0 0", "dooropentimelimit" 300, "gateway" "0 0 0 0", "ip" "0 0 0 0", "jetstreamdeviceurl" "https //usdevice tersosolutions com/v1 0/device/", "lockdownhightemp" 127, "lockdownonacpowerfailure" 0, "lockdownonhightemp" 0, "lockdownonreaderfailure" 0, "logentryeventhightemp" 127, "logentryeventlowtemp" 128, "logentrylevel" "warning", "numberofantennas" 4, "objecteventscancount" 2, "objecteventscantime" 10, "subnet" "0 0 0 0" } } response code 201 created response body { "id" 1, "name" "mypolicyname", "devicedefinition" "ts032, cabinet, us, uhf, gf, 7 9 cu ft", "parameters" { "aggregateeventscancount" "2", "aggregateeventscantime" "10", "antenna1rxsensitivity" "50", "antenna1txpower" "30", "antenna2rxsensitivity" "50", "antenna2txpower" "30", "antenna3rxsensitivity" "50", "antenna3txpower" "30", "antenna4rxsensitivity" "50", "antenna4txpower" "30", "commandpollinterval" "60", "dns" "0 0 0 0", "dooropentimelimit" "300", "gateway" "0 0 0 0", "ip" "0 0 0 0", "jetstreamdeviceurl" "https //usdevice tersosolutions com/v1 0/device/", "lockdownhightemp" "127", "lockdownonacpowerfailure" "0", "lockdownonhightemp" "0", "lockdownonreaderfailure" "0", "logentryeventhightemp" "127", "logentryeventlowtemp" " 128", "logentrylevel" "warning", "numberofantennas" "4", "objecteventscancount" "2", "objecteventscantime" "10", "subnet" "0 0 0 0" }, } version changes addition of the id property