StatsHub Docs
APIAPI v2V2 endpoint referenceCountries

/countries

Inserts a country.

POST
/countries

Inserts a country.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

curl -X POST "https://example.com/countries" \  -H "Content-Type: application/json" \  -d '{    "alpha2": "string",    "name": "string",    "slug": "string"  }'
{  "alpha2": "string",  "message": "string",  "name": "string",  "slug": "string"}