Replace devices in a site

Use this API to empty all devices in a site and add new devices to the site.

Resource Information

Method

URL

Required authentication

PUT

/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 a site.

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.