Set value for a specified device attribute

Use this API to set a value for a specified attribute of a device.

Resource Information

Method

URL

Required authentication

PUT

/V1/CMDB/Devices/Attributes

Yes

Parameters

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

Request*required
(body)

The body contains the following parameters:

attributeName*(string): the name of the attribute to set value.

attributeValue*(string): the value to set for the attribute.

hostname*(string): the hostname of the device.

Example:

{
  "attributeName""loc",
  "attributeValue""Boston",
  "hostname""Bos-Core1"
}

Response

Parameter

Type

Description

Example

statusCode

integer

The returned status code of executing the API.

{
  "statusCode"790200,
  "statusDescription""success"
}

statusDescription

string

The explanation of the status code.