PATCH api/customers/{customerId}/gateways/{gatewayAssetId}/devices/{deviceAssetId}
Partially update one device's name, description, note and other properties.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId | integer |
Required |
|
gatewayAssetId | integer |
Required |
|
deviceAssetId | integer |
Required |
Body Parameters
Only Name and Description properties are currently being updated.
SimpleAssetName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
AssetGuid | string |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
Note | string |
None. |
|
Location | Location |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "AssetGuid": "sample string 2", "Name": "sample string 3", "Description": "sample string 4", "Note": "sample string 5", "Location": { "$id": "2", "Latitude": 1.1, "Longitude": 1.1 } }
text/html
Sample:
{"$id":"1","Id":1,"AssetGuid":"sample string 2","Name":"sample string 3","Description":"sample string 4","Note":"sample string 5","Location":{"$id":"2","Latitude":1.1,"Longitude":1.1}}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.