Jetstream API
...
Device Commands
Lock a Device
8 min
about instructs the specified device to lock for a defined number of hours during a lockdown period, a device may not be accessed command type device is online device is offline synchronous, queueable immediate execution, published results queued execution, published results applicable to the following device types rfid enclosures (cabinets, fridges, freezers) docid\ kobljqnco2s0 1oznf09g parameters true false 117false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type example request url post https //api jetstreamrfid com/2/devices/{device name}/lockdown request body { 	"hours" 1 } response code 200 ok response body { 	"commandid" "6bd4b8fb d964 4d00 ae0a e3943d58e004", 	"status" "completed", 	"exceptionlist" \[], 	"outputparameterlist" \[] } published commandqueuedevent { 	"device" "mydevicename", 	"commandid" "6bd4b8fb d964 4d00 ae0a e3943d58e004", 	"commandname" "lockdown", 	"uri" "/2/devices/mydevicename/lockdown", 	"verb" "post", 	"user" "myusername", 	"parameters" \[ 	 { 	 "key" "hours", 	 "value" "1" 	 } 	], 	"type" "commandqueuedevent", 	"eventid" "98115b7b 3f7f 439b ba27 ac1234d7569c", 	"eventtime" "2017 05 18t00 31 20z" } published commandcompletionevent { 	"commandid" "6bd4b8fb d964 4d00 ae0a e3943d58e004", 	"commandname" "lockdown", 	"outputparameterlist" \[], 	"exceptionlist" \[], 	"device" "mydevicename", 	"receivedtime" "2017 05 18t00 31 36z", 	"type" "commandcompletionevent", 	"eventid" "a0a1a21b 7537 4a75 9eee cb2e9688f146", 	"eventtime" "2017 05 18t00 31 35z" } version changes replaces lockdown