Regions

Region management operations

List regions

get

Lists regions

Authorizations
X-Auth-TokenstringRequired

Authentication token obtained from the authentication service

Query parameters
parent_region_idstringOptional

Filter by parent region ID

limitinteger · min: 1Optional

Requests a page size of items

markerstringOptional

The ID of the last-seen item for pagination

Header parameters
X-Auth-TokenstringRequired

A valid authentication token

Responses
200

Regions listed successfully

application/json
get
/regions
GET /v3/regions HTTP/1.1
Host: identity.example.com
X-Auth-Token: text
Accept: */*
{
  "regions": [
    {
      "id": "text",
      "description": "text",
      "parent_region_id": "text",
      "links": {
        "self": "text",
        "previous": "text",
        "next": "text"
      }
    }
  ],
  "links": {
    "self": "text",
    "previous": "text",
    "next": "text"
  }
}

Create region

post

Creates a region

Authorizations
X-Auth-TokenstringRequired

Authentication token obtained from the authentication service

Header parameters
X-Auth-TokenstringRequired

A valid authentication token

Body
Responses
post
/regions
POST /v3/regions HTTP/1.1
Host: identity.example.com
X-Auth-Token: text
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "region": {
    "id": "text",
    "description": "text",
    "parent_region_id": "text"
  }
}
{
  "region": {
    "id": "text",
    "description": "text",
    "parent_region_id": "text",
    "links": {
      "self": "text",
      "previous": "text",
      "next": "text"
    }
  }
}

Show region details

get

Shows details for a region

Authorizations
X-Auth-TokenstringRequired

Authentication token obtained from the authentication service

Path parameters
region_idstringRequired

The region ID

Header parameters
X-Auth-TokenstringRequired

A valid authentication token

Responses
200

Region details retrieved successfully

application/json
get
/regions/{region_id}
GET /v3/regions/{region_id} HTTP/1.1
Host: identity.example.com
X-Auth-Token: text
Accept: */*
{
  "region": {
    "id": "text",
    "description": "text",
    "parent_region_id": "text",
    "links": {
      "self": "text",
      "previous": "text",
      "next": "text"
    }
  }
}

Delete region

delete

Deletes a region

Authorizations
X-Auth-TokenstringRequired

Authentication token obtained from the authentication service

Path parameters
region_idstringRequired

The region ID

Header parameters
X-Auth-TokenstringRequired

A valid authentication token

Responses
delete
/regions/{region_id}
DELETE /v3/regions/{region_id} HTTP/1.1
Host: identity.example.com
X-Auth-Token: text
Accept: */*

No content

Update region

patch

Updates a region

Authorizations
X-Auth-TokenstringRequired

Authentication token obtained from the authentication service

Path parameters
region_idstringRequired

The region ID

Header parameters
X-Auth-TokenstringRequired

A valid authentication token

Body
Responses
200

Region updated successfully

application/json
patch
/regions/{region_id}
PATCH /v3/regions/{region_id} HTTP/1.1
Host: identity.example.com
X-Auth-Token: text
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "region": {
    "id": "text",
    "description": "text",
    "parent_region_id": "text"
  }
}
{
  "region": {
    "id": "text",
    "description": "text",
    "parent_region_id": "text",
    "links": {
      "self": "text",
      "previous": "text",
      "next": "text"
    }
  }
}

Last updated

Was this helpful?