---
title: "Set market active flag"
method: POST
path: "/admin/markets/active"
tags: ["Admin"]
---

# Set market active flag

`POST /admin/markets/active`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/markets/active`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/markets/active/post.ts> (a function with typed inputs; its response is checked against the schema)

Toggle the off-chain active flag for a market. Setting active=false marks the market inactive in the public API and rejects order placement.

## Request body

- ApiSetMarketActiveRequest
  - `market_id` string, int64
  - `active` boolean

## Response `200`

A successful response.

- ApiSetMarketActiveResponse
  - `market_id` string, int64
  - `active` boolean

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/markets/active/post.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
