Version: 202607
Preview markets to be deleted
POST/openapi/2026-07/markets/preview
Given a set of countries, preview which existing markets would be fully claimed and therefore automatically deleted. Call this before creating or updating a market so the caller knows which markets will be removed.
Request
- application/json
- Body
- Example
Bodyrequired
countriesstring[]required
Countries to claim, ISO 3166-1 alpha-2 codes in upper case (e.g., US, JP). Because a country may belong to only one market, any other market whose countries are all claimed here will be automatically deleted
except_market_idstring
Market ID to exclude from the check
{
"countries": [
"string"
],
"except_market_id": "string"
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
codestring
error code
messagestring
error message
data object
countint64
Number of markets that would be automatically deleted
markets object[]
Markets that would be automatically deleted
idstring
Market ID
namestring
Market name
{
"code": "string",
"message": "string",
"data": {
"count": 0,
"markets": [
{
"id": "string",
"name": "string"
}
]
}
}