StatsHub Docs
APIAPI v2V2 endpoint referenceCountries

/countries/{countrySlug}

Updates a country.

PUT
/countries/{countrySlug}

Updates a country.

Path Parameters

countrySlug*string

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 PUT "https://example.com/countries/string" \  -H "Content-Type: application/json" \  -d '{    "alpha2": "string",    "name": "string",    "slug": "string"  }'
{  "message": "string"}