Update a Region (Deprecated)
This operation updates a region
Path Parameters
- regionId string required
- application/json
Request Body
regionEntity object
zones object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Regions - Add Zone
Schema
regions object[]
error object
{
"regions": [
{
"regionEntity": {
"regionId": 0,
"regionName": "string"
}
}
],
"error": {
"errorMessage": "string",
"errorCode": 0
}
}
{
"regions": [
{
"regionEntity": {
"regionId": 70,
"regionName": "region1"
}
}
],
"error": {
"errorMessage": "",
"errorCode": 0
}
}
PUT /regions/:regionid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/Regions/:regionId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"regionEntity": {
"regionName": "string"
},
"zones": {
"zone": [
{
"continent": "string",
"country": "string",
"state": "string",
"city": "string",
"latitude": 0,
"longitude": 0,
"zoneEntity": {
"zoneName": "string"
}
}
]
}
}'