运行配置
更新基本配置
更新基本配置.示例:{"mixed-port": 7890}.
PATCH
授权
在请求头中携带 Authorization: Bearer ${secret},其中 secret 对应配置中的 secret 字段.若未设置 secret 可省略,但强烈建议设置.
请求体
application/json
The body is of type object.
响应
204
更新成功,无返回内容.
最后修改于 2026年8月14日
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request PATCH \
--url http://{host}:{port}/configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "rule"
}'curl --request PATCH \
--url http://{host}:{port}/configs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "rule"
}'在请求头中携带 Authorization: Bearer ${secret},其中 secret 对应配置中的 secret 字段.若未设置 secret 可省略,但强烈建议设置.
The body is of type object.
更新成功,无返回内容.
