---
title: "更新菜单"
method: POST
path: "/menu/update"
tags: ["菜单管理"]
---

# 更新菜单

`POST /menu/update`

## Request body

- RequestMenuUpdateReq
  - `activeMenu` string
  - `alwaysShow` 1 | 2
  - `breadcrumb` 1 | 2
  - `component` string
  - `hidden` 1 | 2
  - `icon` string
  - `id` integer, required
  - `name` string, required
  - `noCache` 1 | 2
  - `parentId` integer
  - `path` string, required
  - `redirect` string
  - `sort` integer
  - `status` 1 | 2
  - `title` string, required

## Response `200`

OK

- ResponseResponseBody
  - `code` integer
  - `data` unknown
  - `msg` string

---

[API](https://skmtc.dev/opsre/apis/go-ldap-admin.md) · [All operations](https://skmtc.dev/opsre/apis/go-ldap-admin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opsre/go-ldap-admin/revisions/b7dd139f5de2/schema)
