Skip to main content
POST
/
v3
/
countries
Add Country
curl --request POST \
  --url http://localhost/api/v3/countries \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "iso_2": "<string>",
  "iso_3": "<string>",
  "iso_numeric": "<string>",
  "sort_order": 123,
  "currency": "<string>",
  "states": [
    {
      "name": "<string>",
      "type": "<string>",
      "iso": "<string>",
      "iso_2_country": "<string>",
      "iso_2_country_state_code": "<string>",
      "sort_order": 123
    }
  ]
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "iso_2": "<string>",
    "iso_3": "<string>",
    "iso_numeric": "<string>",
    "sort_order": 123,
    "states": [
      {
        "id": 123,
        "name": "<string>",
        "type": "<string>",
        "iso": "<string>",
        "iso_2_country": "<string>",
        "iso_2_country_state_code": "<string>",
        "sort_order": 123,
        "created_at": "<string>",
        "updated_at": "<string>"
      }
    ],
    "currency": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "region": {
      "id": "<string>",
      "name": "<string>",
      "handle": "<string>",
      "is_default": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
name
string
required
iso_2
string
required
iso_3
string | null
iso_numeric
string | null
sort_order
integer | null
currency
string | null
states
object[]
Minimum array length: 1

Response

Country

data
Country · object
required