StatsHub Docs
APIEndpoint referenceCountry

/country

POST
/api/country

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

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