1. 隧道操作
ChmlFrpApi
  • 用户验证
    • 登录
      GET
    • 发送邮箱验证码
      POST
    • 注册
      GET
    • 用户信息
      GET
    • 重置令牌
      GET
    • 用户签到
      POST
    • 重置密码
      GET
    • 修改用户名
      GET
    • 修改QQ
      GET
    • 重置头像
      GET
    • 获取消息
      GET
  • 隧道操作
    • 隧道列表
      GET
    • 创建隧道
      POST
    • 删除隧道
      POST
    • 修改隧道
      POST
    • 获取配置文件
      GET
  • 节点操作
    • 节点列表
      GET
    • 节点详情
      GET
    • 节点状态
      GET
    • 节点在线率
      GET
    • 节点状态详情
      GET
  • 面板信息
    • 面板信息
      GET
    • API状态
      GET
  • 域名管理
    • 获取可用域名列表
      GET
    • 创建免费二级域名
      POST
    • 删除免费二级域名
      POST
    • 修改免费二级域名
      POST
    • 获取用户免费二级域名
      GET
  • 模组插件
    • 版本获取
  1. 隧道操作

修改隧道

POST
http://cf-v2.uapis.cn/update_tunnel
这里除了tunnelid、token参数是用于验证权限及隧道的之外,其他的均用于更新隧道。如tunnelname传递"tunnel1",则隧道名更新为"tunnel1"

请求参数

Body 参数application/json

示例
{
    "tunnelid": 0,
    "token": "string",
    "tunnelname": "string",
    "node": "string",
    "localip": "string",
    "porttype": "string",
    "localport": 0,
    "remoteport": 0,
    "banddomain": "string",
    "encryption": true,
    "compression": true,
    "extraparams": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'http://cf-v2.uapis.cn/update_tunnel' \
--header 'Content-Type: application/json' \
--data '{
    "tunnelid": 0,
    "token": "string",
    "tunnelname": "string",
    "node": "string",
    "localip": "string",
    "porttype": "string",
    "localport": 0,
    "remoteport": 0,
    "banddomain": "string",
    "encryption": true,
    "compression": true,
    "extraparams": "string"
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "state": "string",
    "msg": "string"
}
修改于 2025-01-22 10:41:39
上一页
删除隧道
下一页
获取配置文件
Built with