---
title: "Turn the gateway off or on for a project"
method: PUT
path: "/client/mcp/projects/{id}/switch"
tags: ["Tool gateway"]
---

# Turn the gateway off or on for a project

`PUT /client/mcp/projects/{id}/switch`

## Request

- Base URL: `https://api.roar-ai.com`
- URL: `https://api.roar-ai.com/client/mcp/projects/{id}/switch`
- Auth: HTTP bearer

Body `{"enabled": false}` stops every key in the project from seeing or calling a tool, from its next call. Model calls are unaffected. Owner or admin, or a key with `mcp:write`.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

Switches after the change

- McpSwitches
  - `enabled` boolean, required: False when Roar has turned the gateway off for your organisation. Not settable here
  - `disabledAt` string, date-time, nullable, required
  - `projects` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `enabled` boolean, required
    - `disabledAt` string, date-time, nullable, required

## Other responses

- `404`: No such project

---

[API](https://skmtc.dev/roar-ai/apis/roar-ai-api.md) · [All operations](https://skmtc.dev/roar-ai/apis/roar-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/roar-ai/apis/roar-ai-api/revisions/37e4d0d5a7fe?raw)
