Skip to content

Modify region details

Request

Update the details of the specified region

Security
SessionKey(Required scopes: administrator)
Path
regionintegerrequired

Unique identifier of the requested region

Bodyapplication/json
namestringrequired

Unique name of the region

countrystringrequired

Country in which the region is located

districtstring

Parish, state, province, county, etc. in which the region is located

citystring

City, town or village in which the region is located

curl -i -X PUT \
  'https://docs.ticketingevents.com/_mock/openapi/regions/{region}' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "name": "Antigua and Barbuda",
    "country": "Antigua and Barbuda",
    "district": "",
    "city": ""
  }'

Responses

The region's details were successfully updated.

Bodyapplication/json
selfstring

URI of the region resource

namestring

Unique name of the region

countrystring

Country in which the region is located

districtstring

Parish, state, province, county, etc. in which the region is located

citystring

City, town or village in which the region is located

iconstring, (uri)

URI of an icon that represents the region (e.g. flag)

Response
{ "self": "/regions/19290238432215", "name": "Antigua and Barbuda", "country": "Antigua and Barbuda", "district": "", "city": "", "icon": "https://restfulcountries.com/assets/images/flags/Antigua-And-Barbuda.png" }