Create a new Region (Deprecated)
This operation creates a new region
- application/json
Request Body required
regionEntity object
zones object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
regions object[]
error object
{
"regions": [
{
"regionEntity": {
"regionId": 0,
"regionName": "string"
}
}
],
"error": {
"errorMessage": "string",
"errorCode": 0
}
}
{
"regions": [
{
"regionEntity": {
"regionId": 70,
"regionName": "region1"
}
}
],
"error": {
"errorMessage": "Successful",
"errorCode": 0
}
}
POST /regions
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
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"
}
}
]
}
}'
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"
}
}
]
}
}'
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"
}
}
]
}
}'
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"
}
}
]
}
}'
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"
}
}
]
}
}'
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"
}
}
]
}
}'
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"
}
}
]
}
}'