Update a Device Information
Update the device's name, description and tag.
Request URL
PUT {base_url}/device/openapi/v1/devices
            Request Parameters
| Parameter | Required | Type | Description | 
|---|---|---|---|
| Authorization | Yes | String | The valid access token for making API calls. The format should be Bearer {access_token}.  | 
                        
| Parameter | Required | Type | Description | 
|---|---|---|---|
| deviceId | Yes | Long | The unique ID of this device, which is returned when you add
                                    the device. Note: If you did NOT save the
                                            deviceID, you can query the device's ID using Search Specific Devices. 
                                     | 
                            
| name | Yes | String | Update the device name. | 
| tslVersion | No | String | Update the device's TSL version. | 
| description | No | String | Update the device description. | 
| project | No | String | Update the device's project tag. | 
| tag | No | Array<String> | Update the device's tags. | 
Response Parameters
| Parameter | Type | Description | 
|---|---|---|
| data | Object<Device_Info> | Information of the updated device. | 
| status | String | The result of the API request.
  | 
                            
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. | 
- Device_Info
 - 
                            
Parameter Type Description sn String The SN (Serial Number) of this device. deviceId Long The unique ID of this device on Milesight Development Platform. Note: It is recommended to save this deviceID for future use, as it is required for managing or configuring the device through the API.devEUI String Note: Depending on the product model, this parameter may NOT be returned.The EUI (Extended Unique Identifier) of this device.imei String Note: Depending on the product model, this parameter may NOT be returned.The IMEI (International Mobile Equipment Identity) of this device. 
Examples
- Request example
 - Update the name and project tag of the device with the ID "1742010610312101890".
 
- Response example
 - 
                            
HTTP/1.1 200 OK { "data": { "sn": "6785C38073640023", "deviceId": "1742010610312101890", }, "status": "Success", "requestId": "f3f81c188c03c4b098a83503109802d2" }