cURL
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>" } } }
A POST to the /countries endpoint allows your application to create country.
POST
/countries
Documentation IndexFetch the complete documentation index at: https://docs.omneo.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
Use this file to discover all available pages before exploring further.
1
Show child attributes
Country