APIEndpoint referenceCountry

/country

POST
/api/v2/country

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

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