Jetstream API
...
API Endpoints
Device Commands
Replace All Passes
8min
about overwrite the access control list of the specified device with a new set of passes 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 during user account sign up https //jetstreamrfid com/login/signup 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 ] $ passes array(strings) required body the pass(es) to add to the access control list of the device each value must adhere to this regular expression ^\[a f0 9]{10}$ at least one value must be defined example request url put https //api jetstreamrfid com/2/devices/{device name}/accesscontrol request body { 	"passes" \["mypassnumber1", "mypassnumber2"] } response code 200 ok response body { 	"commandid" "d68d6a29 e8a1 48df b44a 4365b8c2442c", 	"status" "completed", 	"exceptionlist" \[], 	"outputparameterlist" \[] } published commandqueuedevent { 	"device" "mydevicename", 	"commandid" "d68d6a29 e8a1 48df b44a 4365b8c2442c", 	"commandname" "updatepasses", 	"uri" "/2/devices/mydevicename/accesscontrol", 	"verb" "put", 	"user" "myusername", 	"parameters" \[ 	 { 	 "key" "add", 	 "value" "mypassnumber1" 	 }, 	 { 	 "key" "add", 	 "value" "mypassnumber2" 	 }, 	 { 	 "key" "remove", 	 "value" " " 	 } 	], 	"type" "commandqueuedevent", 	"eventid" "b302b789 0fba 42bd 98c4 bc732401aff8", 	"eventtime" "2017 05 17t15 16 59z" } published commandcompletionevent { 	"commandid" "d68d6a29 e8a1 48df b44a 4365b8c2442c", 	"commandname" "updatepasses", 	"outputparameterlist" \[], 	"exceptionlist" \[], 	"device" "mydevicename", 	"receivedtime" "2017 05 17t15 16 48z", 	"type" "commandcompletionevent", 	"eventid" "a15ea1a4 3e5e 47a3 bf91 03ea77416a98", 	"eventtime" "2017 05 17t15 17 08z" } version changes none – this is a new endpoint