---
title: "更新内核"
method: POST
path: "/upgrade"
tags: ["更新"]
---

# 更新内核

`POST /upgrade`

更新内核。可选 ?channel=xxx、?force=true。

## Query parameters

- `channel` string
- `force` boolean

## Request body

- PathPayloadBody — 路径 / 内容载荷。path 指定配置文件路径，payload 直接传入配置内容；二者均可留空以使用当前配置。
  - `path` string
  - `payload` string

## Response `200`

更新成功。

- object
  - `status` string

---

[API](https://skmtc.net/oom-wg/apis/mihomo-api.md) · [All operations](https://skmtc.net/oom-wg/apis/mihomo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oom-wg/mihomo-api/revisions/d1b285042ccc/schema)
