Skip to main content

Update Token Markets

Update the markets where a token is listed.

Endpoint: PUT /api/v1/integration/tokens/{token_id}/markets

Authentication: Required (Bearer token)

Required Headers:

Authorization: Bearer <access_token>
X-Target-Server: integration
Content-Type: application/json

Path Parameters

ParameterTypeRequiredDescription
token_idstring (UUID)YesToken ID

Request Body

{
"is_all_market": false,
"market_ids": ["861ce222-559c-4a0f-872d-a9f8cf05c93f"]
}

Request Parameters

FieldTypeRequiredDescription
is_all_marketbooleanYesWhether to list the token in all markets
market_idsarray (string)NoArray of market IDs to list the token in (required if is_all_market is false)

Note: If is_all_market is true, the token will be listed in all markets. If is_all_market is false, you must provide market_ids array with specific market IDs.

Response

Status: 200 OK

Returns the updated distributor market tokens.

{
"distributor_market_tokens": [
{
"id": "42773a28-c4c3-4a73-a97e-fd3c36be9135",
"distributor_id": "084a5159-1546-4ade-a7ba-956e0234a417",
"token_id": "3c4da8b4-99e0-45ca-bb0b-221c3b1272b3",
"market_id": "861ce222-559c-4a0f-872d-a9f8cf05c93f",
"status": 1,
"created_at": "2025-12-24T11:05:57.817512Z",
"updated_at": "2025-12-24T11:05:57.817512Z"
}
],
"total": 1
}

Example cURL Request

curl -X PUT 'https://<base-url>/api/v1/integration/tokens/3c4da8b4-99e0-45ca-bb0b-221c3b1272b3/markets' \
-H "Content-Type: application/json" \
-H "X-Target-Server: integration" \
-H "Authorization: Bearer <access_token>" \
-d '{
"is_all_market": false,
"market_ids": ["861ce222-559c-4a0f-872d-a9f8cf05c93f"]
}'