---
title: "Turn a whole market on or off (admin)"
method: PUT
path: "/broker/market-access"
tags: ["Market access"]
---

# Turn a whole market on or off (admin)

`PUT /broker/market-access`

## Request

- Base URL: `https://api.hedgespecialty.com/api/v1`
- URL: `https://api.hedgespecialty.com/api/v1/broker/market-access`
- Auth: OAuth 2
  - Authorization code: `https://api.hedgespecialty.com/api/v1/oauth/authorize`
  - Client credentials
  - Token URL: `https://api.hedgespecialty.com/api/v1/oauth/token`

## Request body

- object
  - `market_id` string, uuid, required
  - `enabled` boolean, required

## Response `200`

The refreshed market-access table

## Other responses

- `403`: Admin role required
- `404`: Market not visible to this brokerage

---

[API](https://skmtc.dev/hedgespecialty/apis/hedge-submission-api.md) - [All operations](https://skmtc.dev/hedgespecialty/apis/hedge-submission-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hedgespecialty/apis/hedge-submission-api/revisions/beefa9cdc11c?raw)
