---
title: Add or Remove Passes
slug: jetstream-v2/add-or-remove-passes
docTags: 
createdAt: 2024-01-23T15:32:30.576Z
---

## About

Add passes to and/or delete passes from the access control list of the specified device.

| **Command Type**       | **Device is Online**                                         | **Device is Offline**               |
| ---------------------- | ------------------------------------------------------------ | ----------------------------------- |
| Synchronous, Queueable | Immediate execution, Immediate results and published results | Queued execution, Published results |

Applicable to the following device(s): [RFID Enclosures (Cabinets, Fridges, Freezers)](docId\:kobLJQncO2S0-1ozNf09G)

## Parameters

| **Property**                                                         | **Location** | **Details**                                                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **AccessKey**<br />:::BlockQuote
string&#xA;Required&#xA;Unique
:::  | Header       | The access key for your user account.<br />This value is a 36-character GUID provided during [user account sign up](https://jetstreamrfid.com/login/signup).                                                                                                                |
| **DeviceName**<br />:::BlockQuote
string&#xA;Required&#xA;Unique
::: | URL          | The name of the device.<br />This value has a max length of 128 ASCII characters.<br />This value must adhere to this regular expression: ^\[a-zA-Z0-9-\_]\*$                                                                                                               |
| **Add**<br />:::BlockQuote
array(strings)&#xA;Required
:::           | Body         | The pass(es) to add to the access control list of the device.<br />Each value must adhere to this regular expression: ^\[A-F0-9]\{10}$<br />This property is required and must be included with all requests. If there are no passes to add, define an empty array.         |
| **Remove**<br />:::BlockQuote
array(strings)&#xA;Required
:::        | Body         | The pass(es) to delete from the access control list of the device.<br />Each value must adhere to this regular expression: ^\[A-F0-9]\{10}$<br />This property is required and must be included with all requests. If there are no passes to delete, define an empty array. |

## Example

### Request URL

**POST** https\://api.jetstreamrfid.com/2/devices/\{Device Name}/accesscontrol

### Request Body

:::BlockQuote
\{
&#x9;"Add": \["MyPassNumber"],
&#x9;"Remove": \[]
}
:::

### Response Code

200 OK

### Response Body

:::BlockQuote
\{
&#x9;"CommandId": " fbfe6dbd-d03a-42ac-8216-2396de99c315",
&#x9;"Status": "Completed",
&#x9;"ExceptionList": \[],
&#x9;"OutputParameterList": \[]
}
:::

### Published CommandQueuedEvent

:::BlockQuote
\{
&#x9;"Device": "MyDeviceName",
&#x9;"CommandId": "fbfe6dbd-d03a-42ac-8216-2396de99c315",
&#x9;"CommandName": "UpdatePasses",
&#x9;"URI": "/2/Devices/MyDeviceName/AccessControl",
&#x9;"Verb": "Post",
&#x9;"User": "MyUserName",
&#x9;"Parameters": \[
&#x9;	\{
&#x9;	 	"Key": "Add",
&#x9;	 	"Value": "MyPassNumber"
&#x9;	}
&#x9;],
&#x9;"Type": "CommandQueuedEvent",
&#x9;"EventId": "ff47841c-6ecd-471f-85ec-46dfc708efc4",
&#x9;"EventTime": "2017-05-17T13:51:08Z"
}
:::

### Published CommandCompletionEvent

:::BlockQuote
\{
&#x9;"CommandId": "fbfe6dbd-d03a-42ac-8216-2396de99c315",
&#x9;"CommandName": "UpdatePasses",
&#x9;"OutputParameterList": \[],
&#x9;"ExceptionList": \[],
&#x9;"Device": "MyDeviceName",
&#x9;"ReceivedTime": "2017-05-17T13:51:24Z",
&#x9;"Type": "CommandCompletionEvent",
&#x9;"EventId": "56ae62b2-01c7-4ac3-a5c1-c49849291f3f",
&#x9;"EventTime": "2017-05-17T13:51:18Z"
}
:::

## Version Changes

Replaces UpdatePasses
