Use this API to create multiple sites. A site will be created as a parent if the site does not have a parent site in the current system.

Resource Information

Method

URL

Required authentication

POST

/V1/CMDB/Sites

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, such as My Network/Site1/Boston.

isContainer* (bool): specify whether the site to be added is a container site.

Example:

{
  "sites": [
    {
      "sitePath""string",
      "isContainer": true
    },
    {
      "sitePath""string",
      "isContainer": false
    },
  ]
}

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.