---
title: CommandQueuedEvent
slug: jetstream-v3/commandqueuedevent
docTags: 
createdAt: 2024-01-23T15:46:11.222Z
---

## About

CommandQueuedEvent signals when any user of your application has queued a command. CommandQueuedEvent is useful for keeping multiple components of your application in sync with each other for command information.

## Fields

| **Property**                                                  | **Details**                                                                                                                                        |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Type**<br />string                                          | The type of Jetstream event.                                                                                                                       |
| **EventId**<br />string<br />Unique                           | The ID assigned to the event.                                                                                                                      |
| **EventTime**<br />string                                     | The time that the event occurred.<br />The value is expressed in UTC.<br />This value is expressed in the following format: yyyy-MM-ddTHH\:mm\:ssZ |
| **Version**<br />int                                          | The Jetstream version of the event.                                                                                                                |
| **Device**<br />string                                        | The name of the device.                                                                                                                            |
| **CommandId**<br />string<br />Unique                         | The ID assigned to the command that was queued.                                                                                                    |
| **CommandName**<br />string                                   | The name of the command that was queued.                                                                                                           |
| **URI**<br />string                                           | The URI of the endpoint that was called to generate this queued event.                                                                             |
| **Verb**<br />string                                          | The HTTP verb the API endpoint was called with.                                                                                                    |
| **User**<br />string                                          | The username of the user that called the endpoint.                                                                                                 |
| **Parameters**<br />list (keyvaluepair<br />(string, string)) | A list of values that a device will act on.                                                                                                        |

## Examples

### Published CommandQueuedEvent for [Sync Device Credentials](docId\:L7Ik_rA1wcy3PhHm0fWQS)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "5be4a19c-f1c3-42a9-b437-eacf5272bb8d",
&#x20;   "CommandName": "UpdatePasses",
&#x20;   "URI": "/3/Devices/MyDeviceName/credentials/sync",
&#x20;   "Verb": "Post",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[
&#x20;       \{
&#x20;           "Key": "Add",
&#x20;           "Value": "MyBasicCredentials1\_Value"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Add",
&#x20;           "Value": "MyBasicCredentials2\_Value"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Add",
&#x20;           "Value": "MyBasicCredentials3\_Value"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Remove",
&#x20;           "Value": "\*"
&#x20;       }
&#x20;   ],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "7e830645-0c77-4a1d-9666-1e5b6c320947",
&#x20;   "EventTime": "2018-05-17T13:51:08Z",
&#x20;   "Version": 3
}
:::

### Published CommandQueuedEvent for [Get All RFID Tags](docId:7oNVTnTDTfl9pTDal2NVo)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "6f05b39a-a7a8-4bff-b694-00117af4a6d4",
&#x20;   "CommandName": "GetEPCListCommand",
&#x20;   "URI": "/3/Devices/MyDeviceName/epclist",
&#x20;   "Verb": "Get",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "14858b69-f6ce-414d-b64b-531e1a0a06f4",
&#x20;   "EventTime": "2018-05-17T16:22:29Z",
&#x20;   "Version": 3
}
:::

### Published CommandQueuedEvent for [Restart a Device](docId\:Ww54Y7kIQnfVYk8zyqakv)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "0a80f878-8cdf-4265-beb9-2649e3affe36",
&#x20;   "CommandName": "ResetCommand",
&#x20;   "URI": "/3/Devices/MyDeviceName/reset",
&#x20;   "Verb": "Post",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "b705e17a-b64b-4bf1-bfb0-29f0b3ac1e23",
&#x20;   "EventTime": "2017-05-17T19:57:52Z",
&#x20;   "Version": 3
}
:::

### Published CommandQueuedEvent for [Lockdown a Device](docId\:vBOyeOHCjLpY_7ZR-aFgZ)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "6bd4b8fb-d964-4d00-ae0a-e3943d58e004",
&#x20;   "CommandName": "Lockdown",
&#x20;   "URI": "/3/Devices/MyDeviceName/lockdown",
&#x20;   "Verb": "Post",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[
&#x20;       \{
&#x20;           "Key": "Hours",
&#x20;           "Value": "1"
&#x20;       }
&#x20;   ],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "98115b7b-3f7f-439b-ba27-ac1234d7569c",
&#x20;   "EventTime": "2018-05-18T00:31:20Z",
&#x20;   "Version": 3
&#x20;}
:::

### Published CommandQueuedEvent for [Unlock a Device's Door](docId:1_Ro5CpawEzhguxFHOfai)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "2b50fff0-e84c-42c1-b294-9eb6895684c3",
&#x20;   "CommandName": "UnlockDoor",
&#x20;   "URI": "/3/Devices/MyDeviceName/unlockdoor",
&#x20;   "Verb": "Post",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[
&#x20;       \{
&#x20;           "Key": "AccessToken",
&#x20;           "Value": "MyAccessToken"
&#x20;       }
&#x20;   ],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "80476d30-8d3b-415e-9966-6e5d63876ad9",
&#x20;   "EventTime": "2018-05-18T03:22:37Z",
&#x20;   "Version": 3
}
:::

### Published CommandQueuedEvent for [Get a Device's Policy Parameters](docId\:G6S4NzG5DSGAf_dCAGbTb)

:::BlockQuote
\{
&#x20;   "Device": "MyDeviceName",
&#x20;   "CommandId": "e8498582-9ae3-4e82-a1f0-005ecce1ec7c",
&#x20;   "CommandName": "GetConfigValuesCommand",
&#x20;   "URI": "/3/Devices/MyDeviceName/policy/sync",
&#x20;   "Verb": "Get",
&#x20;   "User": "MyUserName",
&#x20;   "Parameters": \[
&#x20;       \{
&#x20;           "Key": "Parameter0",
&#x20;           "Value": "aggregateeventscancount"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter1",
&#x20;           "Value": "aggregateeventscantime"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter2",
&#x20;           "Value": "antenna1rxsensitivity"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter3",
&#x20;           "Value": "antenna1txpower"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter4",
&#x20;           "Value": "antenna2rxsensitivity"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter5",
&#x20;           "Value": "antenna2txpower"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter6",
&#x20;           "Value": "antenna3rxsensitivity"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter7",
&#x20;           "Value": "antenna3txpower"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter8",
&#x20;           "Value": "antenna4rxsensitivity"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter9",
&#x20;           "Value": "antenna4txpower"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter10",
&#x20;           "Value": "commandpollinterval"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter11",
&#x20;           "Value": "dns"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter12",
&#x20;           "Value": "dooropentimelimit"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter13",
&#x20;           "Value": "gateway"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter14",
&#x20;           "Value": "ip"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter15",
&#x20;           "Value": "jetstreamdeviceurl"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter16",
&#x20;           "Value": "lockdownhightemp"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter17",
&#x20;           "Value": "lockdownonacpowerfailure"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter18",
&#x20;           "Value": "lockdownonhightemp"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter19",
&#x20;           "Value": "lockdownonreaderfailure"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter20",
&#x20;           "Value": "logentryeventhightemp"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter21",
&#x20;           "Value": "logentryeventlowtemp"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter22",
&#x20;           "Value": "logentrylevel"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter23",
&#x20;           "Value": "numberofantennas"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter24",
&#x20;           "Value": "objecteventscancount"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter25",
&#x20;           "Value": "objecteventscantime"
&#x20;       },
&#x20;       \{
&#x20;           "Key": "Parameter26",
&#x20;           "Value": "subnet"
&#x20;       }
&#x20;   ],
&#x20;   "Type": "CommandQueuedEvent",
&#x20;   "EventId": "fe971dbc-a783-458c-9096-ea2869956fae",
&#x20;   "EventTime": "2017-05-18T20:55:09Z",
&#x20;   "Version": 3
}
:::

### Published CommandQueuedEvent for [Set a Device's Policy Parameters](docId\:g2EhiBF-dqNWC4nH0cX1w)

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

## Version Changes

- Replaced CommandQueuedEvents for Get All Passes, Add and/or Remove Passes, and Replace All Passes with the CommandQueuedEvent for Sync Device Credentials.
- Removed CommandQueuedEvent for Update Agent Firmware.
- Addition of the Version property.

