Skip to content

regions ​

5 endpoints at a glance
MethodPathSummary
GET/regions/List Regions
POST/regions/Create Region
DELETE/regions/{slug}/Delete Region
GET/regions/{slug}/Get Region
PUT/regions/{slug}/Update Region

regions​


List Regions​

GET
/regions/

Public list of every region with full country lists inline.

The dataset is small (<50 rows × ~20 country codes each); no
pagination needed. Same shape as a single GET /regions/{slug}/,
just in an array — the UI's expansion-panel UX can skip the
follow-up detail fetch.

Responses​

Successful Response

application/json
JSON
[
  
{
  
  
"additionalProperties": "string"
  
}
]

Playground​

Samples​


Create Region​

POST
/regions/

Create a new region. Admin-only.

Validates that every cca2 in countries exists in db.countries
so a typo at create time can't poison the data. Unknown codes
surface as 422 with the offending codes echoed back.

Parameters​

Header Parameters

authorization
x-api-key

Request Body​

application/json
JSON
{
  
"slug": "string",
  
"description": "string",
  
"countries": [
  
  
"string"
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Headers
Body

Samples​


Get Region​

GET
/regions/{slug}/

Public detail for a single region. 404 on miss.

Parameters​

Path Parameters

slug*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Variables
Key
Value

Samples​


Update Region​

PUT
/regions/{slug}/

Update an existing region's description + countries. Admin-only.

The slug is immutable (it's the docId flags / comments / anchor
filters key on) so it's path-only and never re-validated here.
422 on unknown cca2 codes; 404 when the slug doesn't exist.

Parameters​

Header Parameters

authorization
x-api-key

Path Parameters

slug*
Type
string
Required

Request Body​

application/json
JSON
{
  
"description": "string",
  
"countries": [
  
  
"string"
  
]
}

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Headers
Variables
Key
Value
Body

Samples​


Delete Region​

DELETE
/regions/{slug}/

Delete a region by slug. Admin-only. 404 on miss.

Parameters​

Header Parameters

authorization
x-api-key

Path Parameters

slug*
Type
string
Required

Responses​

Successful Response

application/json
JSON
{
  
"additionalProperties": "string"
}

Playground​

Headers
Variables
Key
Value

Samples​


Atlas — built on RIPE Atlas data.