---
title: "锁定隧道"
method: POST
path: "/tunnel/lock"
tags: ["隧道管理"]
---

# 锁定隧道

`POST /tunnel/lock`

## Request body

- object
  - `id` integer, required — 隧道 ID
  - `edit` boolean — 更新锁定编辑状态
  - `delete` boolean — 更新锁定删除状态
  - `migrate` boolean — 更新锁定迁移状态

## Response `204`

锁定状态修改成功

## Other responses

- `500` — 通用错误返回

---

[API](https://skmtc.dev/natfrp/apis/sakurafrp-api.md) · [All operations](https://skmtc.dev/natfrp/apis/sakurafrp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/natfrp/sakurafrp-api/revisions/2caa73524824/schema)
