Countries (admin API)
Admin routes of the countries module. Every route needs a staff session and the permission named on it; send X-Resolve-Locale: false to receive every locale of a translatable field for editing.
GET /v1/admin/countries
Section titled “GET /v1/admin/countries”List countries with enabled/default flags
Responses:
200: Countries retrieved.
PATCH /v1/admin/countries
Section titled “PATCH /v1/admin/countries”Bulk update enabled countries + default
Request body: UpdateEnabledCountriesDto.
Responses:
200: Updated.400: Empty enabled list or default not in enabled set.
Schemas
Section titled “Schemas”UpdateEnabledCountriesDto
Section titled “UpdateEnabledCountriesDto”enabled(array of"AE","AU","BH","BR","CA","DE","EG","ES","FR","GB","ID","IN","IT","JO","JP","KR","KW","LB","LY","MA","MX","MY","NL","OM","PK","QA","SA","SE","SG","TN","US", required).defaultCode("AE","AU","BH","BR","CA","DE","EG","ES","FR","GB","ID","IN","IT","JO","JP","KR","KW","LB","LY","MA","MX","MY","NL","OM","PK","QA","SA","SE","SG","TN","US", optional).