---
title: "更新角色记录"
method: POST
path: "/role/update"
tags: ["角色管理"]
---

# 更新角色记录

`POST /role/update`

更新角色记录

## Request body

- RequestRoleUpdateReq
  - `id` integer, required
  - `keyword` string, required
  - `name` string, required
  - `remark` string
  - `sort` integer
  - `status` 1 | 2

## 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)
