PATCH api/customers/{customerId}/gateways/{gatewayAssetId}/devices

Partially update many devices' name, description, note and other properties.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

integer

Required

gatewayAssetId

integer

Required

Body Parameters

Id is deviceAssetId. Only Name and Description are currently being updated.

Collection of SimpleAsset
NameDescriptionTypeAdditional 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",
    "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
    }
  },
  {
    "$ref": "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}},{"$ref":"1"}]

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.