Add the Characteristics to an Item

Use the following details to add characteristics to an Item using REST interface:

HTTP Method

POST

Endpoint URL

See the REST Service Endpoint topic for more details.

Resource

/item/{id}/characteristic

Request Parameters

Provide values for the following parameters:

Parameter Name Data Type Mandatory
id string Yes
name string No
sid string No
value string No
id string No

Request Model

Media Type: application/json

{
  "id": "string",
  "name": "string",
  "sid": 0,
  "value": "string"
}

Response Model

{
  "data": {
    "id": "string",
    "name": "string",
    "sid": 0,
    "value": "string"
  },
  "duration": 0,
  "result": {
    "code": "string",
    "message": "string",
    "params": [
      "string"
    ]
  },
  "startTimestampMS": 0
}

Response Codes and Descriptions

Response Code Description
201 Created
401 Unauthorized
403 Forbidden
404 Not Found