Skip to main content

Create a new Region (Deprecated)

This operation creates a new region

Request Body required
  • regionEntity object
  • regionName string
  • zones object
  • zone object[]
  • city string
  • continent string
  • country string
  • latitude int32
  • longitude int32
  • state string
  • zoneEntity object
  • zoneName string
Responses

OK


Schema
  • regions object[]
  • regionEntity object
  • regionId integer
  • regionName string
  • error object
  • errorMessage string
  • errorCode integer
POST /regions    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body required

{
"regionEntity": {
"regionName": "region1"
},
"zones": {
"zone": [
{
"city": "Tinton Falls",
"continent": "",
"country": "usa",
"latitude": 10,
"longitude": 20,
"state": "NJ",
"zoneEntity": {
"zoneName": "TintonFalls_Zone"
}
}
]
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Regions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "region1"
},
"zones": {
"zone": [
{
"city": "Tinton Falls",
"continent": "",
"country": "usa",
"latitude": 10,
"longitude": 20,
"state": "NJ",
"zoneEntity": {
"zoneName": "TintonFalls_Zone"
}
}
]
}
}'