APILegacy APIV1 endpoint referenceCountry
/country/{slug}
Path Parameters
slug*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/api/country/string" \ -H "Content-Type: application/json" \ -d '{ "alpha2": "string", "name": "string", "slug": "string" }'{ "message": "string"}/country/{slug} GET
The legacy file was named [id].ts but read `query.slug`, so under Next.js the path segment was ignored and /api/country/spain was a 404.
/dashboard/backfill-shotmap POST
The bounds on each option are the original's and are worth keeping: a batch size in the thousands or a delay of zero would have the ingestion service hammer the upstream provider.