---
title: "Tunnel Set Data Enabled"
method: POST
path: "/tunnel/data-enable"
---

# Tunnel Set Data Enabled

`POST /tunnel/data-enable`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/tunnel/data-enable`
- Auth: none declared

Toggles cloud_data_enabled for a tunnel token. The token itself is the credential
(no admin auth needed) — only the user holding the token can flip their own flag.
Called by the local Swift server when user toggles 'Cloud access' in tray (WEB AI CLIENTS).

## Request body

- TunnelDataEnableRequest
  - `token` string, required
  - `enabled` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
