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("QA","AE","SA","KW","BH","OM","EG","JO","LB","MA","LY","TN","GB","DE","FR","IT","ES","NL","SE","US","CA","MX","BR","IN","PK","ID","MY","SG","AU","JP","KR", required).defaultCode("QA","AE","SA","KW","BH","OM","EG","JO","LB","MA","LY","TN","GB","DE","FR","IT","ES","NL","SE","US","CA","MX","BR","IN","PK","ID","MY","SG","AU","JP","KR", optional).