跳转到主要内容
POST
/
restart
重启内核
curl --request POST \
  --url http://{host}:{port}/restart \
  --header 'Authorization: Bearer <token>'
{
  "status": "ok"
}

授权

Authorization
string
header
必填

在请求头中携带 Authorization: Bearer ${secret},其中 secret 对应配置中的 secret 字段。若未设置 secret 可省略,但强烈建议设置。

响应

200 - application/json

已接受重启请求。

status
string
最后修改于 2026年6月23日