Devices

Update a single resource. In case you want update BigDecimal attribute. It's necessary include also decimal point. Otherwise attribute will be converted as int.

put/devices/{deviceId}/{resourcePath}

Path parameters

deviceIdstring uuid required

Id of the device

resourcePathstring required

Href of the resource

Query parameters

interfacestring

Defines the view or a way how to interact with a resource

Headers

Correlation-IDstring

Cross request logging correlation id

Request body

ResourceRepresentationUpdate required

Example request

{
  "n": "Rename test device"
}

Response

Device

rtstring[]

Resources types

ifstring[]

Supported interfaces

Example response

{
  "rt": [
    "x.org.iotivity.device",
    "oic.wk.d"
  ],
  "if": [
    "oic.if.baseline",
    "oic.if.r"
  ],
  "di": "53080a4f-5e3e-4291-802f-3436238232d2",
  "n": "Test device"
}

Changes