Skip to main content
POST
/
v1
/
regions
Create region
curl --request POST \
  --url https://api.cnap.tech/v1/regions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "us-east-1",
  "icon": "<string>"
}
'
{
  "id": "j572abc123def456",
  "name": "us-east-1",
  "icon": "<string>",
  "workspace_id": "j572abc123def456",
  "created_at": 123
}

Authorizations

Authorization
string
header
required

Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://dash.cnap.tech/account/tokens

Body

application/json
name
string
required
Required string length: 1 - 100
Example:

"us-east-1"

icon
string<uri>

Icon URL

Maximum string length: 256

Response

Region created

id
string
required
Example:

"j572abc123def456"

name
string
required
Example:

"us-east-1"

icon
string | null
required

Icon URL

workspace_id
string
required
Example:

"j572abc123def456"

created_at
number
required

Unix timestamp (seconds)