---
title: Modify a Device
slug: jetstream-v3/modify-a-device
docTags: 
createdAt: 2024-01-23T15:29:30.470Z
---

## About

Overwrite the name, serial number, device definition, or aliases of the specified device with a new name, serial number, device definition, or aliases.

## 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 in your [user profile](docId\:BbIFQiuIXND5iAfMreBBi).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| DeviceName<br />:::BlockQuote
string&#xA;Required&#xA;Unique
:::     | URL                                 | The existing 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-\_,. ]\*$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Id<br />:::BlockQuote
ulong&#xA;Unique
:::                           | Body<br />*Response*                | The ID assigned to the newly created device.<br />This value is generated by Jetstream – do not define it in requests.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Name<br />:::BlockQuote
string&#xA;Required&#xA;Unique
:::           | Body<br />*Request*<br />*Response* | 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-\_]\*$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| SerialNumber<br />:::BlockQuote
string&#xA;Required&#xA;Unique
:::   | Body<br />*Request*<br />*Response* | The physical serial number 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-\_]\*$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| DeviceDefinition<br />:::BlockQuote
string&#xA;Required
:::          | Body<br />*Request*<br />*Response* | The name of the device definition associated with the device.<br />This value is one of the device definitions retrieved by the  [Get All Device Definitions](docId\:ZrE5zpBxavj78EPZuxb84) 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-\_,. ]\*$                                                                                                                                                                                                                                                                                                                          |
| Region<br />:::BlockQuote
string
:::                                 | Body<br />*Response*                | The geographic region that the RFID device is being placed. This is used to create the most reliable and lowest latency connection to the device<br />This value is one of the following possibilities: US, EU, AP, USGOV.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Policy<br />:::BlockQuote
string
:::                                 | Body<br />*Response*                | The name of the policy associated with the device.<br />This value is set via the [Add a Policy to a Device](docId:8iiNKl-mZ80HPIut5zv2e) request. Attempting to set this any other way or not defining this property will result in an empty string value.                                                                                                                                                                                                                                                                                                                                                                                                            |
| Aliases<br />:::BlockQuote
array(string)&#xA;Required&#xA;Unique
::: | Body<br />*Request*<br />*Response* | The names of the aliases that the device can assume.<br />Each value has a max length of 128 ASCII characters.<br />Each value must adhere to this regular expression: ^\[a-zA-Z0-9-\_,. ]\*$<br />If the aliases that the device can assume is/are not changing, define the existing alias names.<br />If the name of the device is not changing, the defined aliases will be associated with the existing device name.<br />If the name of the device is changing, the defined aliases will be associated with the new device name.<br />This property is required and must be included with all requests. If there are no aliases to define, define an empty array. |

## Example

### Request URL

**PUT** https\://api.jetstreamrfid.com/3/devices/\{Device Name}


### Request Body

:::BlockQuote
\{
&#x20;   "Name": "MyNewDeviceName",
&#x20;   "SerialNumber": "MyExistingDeviceSerialNumber",
&#x20;   "DeviceDefinition": "TS084, Handheld, US, UHF",
&#x20;   "Region": "US",
&#x20;   "Policy": "",
&#x20;   "Aliases": \[&#x20;
&#x20;           "MyAliasName1", &#x20;
&#x20;           "MyAliasName2",
&#x20;           "MyNewAliasName3"
&#x20;   ]
}
:::

### Response Code

200 Ok


### Response Body

:::BlockQuote
\{
&#x20;   "Id": 1,
&#x20;   "Name": "MyNewDeviceName",
&#x20;   "SerialNumber": "MyExistingDeviceSerialNumber",
&#x20;   "DeviceDefinition": "TS084, Handheld, US, UHF",
&#x20;   "Region": "US",
&#x20;   "Policy": "",
&#x20;   "Aliases": \[&#x20;
&#x20;           "MyAliasName1", &#x20;
&#x20;           "MyAliasName2",
&#x20;           "MyNewAliasName3"
&#x20;   ]
}
:::

## Version Changes

None – this is a new endpoint
