---
title: Update Firmware
slug: jetstream-v2/update-firmware
docTags: 
createdAt: 2024-01-23T15:35:32.104Z
---

## About

Instruct the specified device to update the Agent firmware from a specified URL.

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

## 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-\_]\*$                                                                                                                                                                                  |
| **NewDeviceDefinition**<br />:::BlockQuote
string
:::                | Body         | The device will be updated to this specified device definition.<br />This value is one of the device definitions retrieved by the [Get All Device Definitions](docId\:XnMyd7X5iixvo71OFVqoz) request.<br />This value has a max length of 128 ASCII characters.<br />This value must adhere to this regular expression: ^\[a-zA-Z0-9-\_,. ]\*$ |
| **Url**<br />:::BlockQuote
string&#xA;Required
:::                   | Body         | The URL containing the new firmware file.<br />If updating the Agent from firmware version 3 to 4, this value must be a version number in the following format: Major version.Minor version<br />If updating the Agent from firmware version 4 to 4+, this value must be a validly formatted HTTP or HTTPS URL.                                |
| **Component**<br />:::BlockQuote
string&#xA;Required
:::             | Body         | The firmware component that is being upgraded.<br />If updating the Agent from firmware version 3 to 4, this value is the following: AGENT<br />If updating the Agent from firmware version 4 to 4+, this value is the following: Agent                                                                                                        |

## Examples

### Example Update Agent Firmware v3 to v4

**POST** https\://api.jetstreamrfid.com/2/devices/\{DeviceName}/version

:::BlockQuote
\{
&#x9;"Url": "04.00",
&#x9;"Component": "AGENT"
}
:::

200 OK

:::BlockQuote
\{
&#x9;"CommandId": "527a2f74-af29-410a-8ecb-7ec9f756079a",
&#x9;"Status": "Queued",
&#x9;"ExceptionList": \[],
&#x9;"OutputParameterList": \[]
}
:::

:::BlockQuote
\{
&#x9;"Device": "MyDeviceName",
&#x9;"CommandId": "527a2f74-af29-410a-8ecb-7ec9f756079a",
&#x9;"CommandName": "UpdateFirmwareCommand",
&#x9;"URI": "/2/devices/MyDeviceName/Version",
&#x9;"Verb": "Post",
&#x9;"User": "MyUserName",
&#x9;"Parameters": \[
&#x9;	\{
&#x9;		"Key": "Component",
&#x9;		"Value": "AGENT"
&#x9;	},
&#x9;	\{
&#x9;		"Key": "Url",
&#x9;		"Value": "04.00"
&#x9;	}
&#x9;],
&#x9;"Type": "CommandQueuedEvent",
&#x9;"EventId": "55d8b7f7-63ad-446f-a230-e8f8829a0dbd",
&#x9;"EventTime": "2017-05-19T21:06:49Z"
}
:::

None Published

### Example Update Agent Firmware v4 to v4+

**POST** https\://api.jetstreamrfid.com/2/devices/\{DeviceName}/version

:::BlockQuote
\{
&#x9;"Url": "MyURL",
&#x9;"Component": "Agent"
}
:::

200 OK

:::BlockQuote
\{
&#x9;"CommandId": "527a2f74-af29-410a-8ecb-7ec9f756079a",
&#x9;"Status": "Queued",
&#x9;"ExceptionList": \[],
&#x9;"OutputParameterList": \[]
}
:::

:::BlockQuote
\{
&#x9;"Device": "MyDeviceName",
&#x9;"CommandId": "527a2f74-af29-410a-8ecb-7ec9f756079a",
&#x9;"CommandName": "UpdateFirmwareCommand",
&#x9;"URI": "/2/devices/MyDeviceName/Version",
&#x9;"Verb": "Post",
&#x9;"User": "MyUserName",
&#x9;"Parameters": \[
&#x9;	\{
&#x9;		"Key": "Component",
&#x9;		"Value": "Agent"
&#x9;	},
&#x9;	\{
&#x9;		"Key": "Url",
&#x9;		"Value": "MyURL"
&#x9;	}
&#x9;],
&#x9;"Type": "CommandQueuedEvent",
&#x9;"EventId": "55d8b7f7-63ad-446f-a230-e8f8829a0dbd",
&#x9;"EventTime": "2017-05-19T21:06:49Z"
}
:::

:::BlockQuote
\{
&#x9;"CommandId": "527a2f74-af29-410a-8ecb-7ec9f756079a",
&#x9;"CommandName": "UpdateFirmwareCommand",
&#x9;"OutputParameterList": \[],
&#x9;"ExceptionList": \[],
&#x9;"Device": "MyDeviceName",
&#x9;"ReceivedTime": "2017-05-19T21:17:05Z",
&#x9;"Type": "CommandCompletionEvent",
&#x9;"EventId": "3a9387ce-e797-4330-9a49-3f0c582c4721",
&#x9;"EventTime": "2017-05-19T21:16:46Z"
}
:::

## Version Changes

Replaces UpdateFirmwareCommand
