Use this API to add devices to a site.

Resource Information

Method

URL

Required authentication

POST

/V1/CMDB/Sites/Devices

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 two parameters:

sitePath* (string): the full path of the site that you want to add devices to.

Devices* (list): the devices to be added.

Example:

{
  "sitePath""XXXXXXX",
  "Devices": [
    "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.