---
title: "更新用户记录"
method: POST
path: "/user/update"
tags: ["用户管理"]
---

# 更新用户记录

`POST /user/update`

添加用户记录

## Request body

- RequestUserUpdateReq
  - `avatar` string
  - `departmentId` integer[], required
  - `departments` string
  - `givenName` string
  - `id` integer, required
  - `introduction` string
  - `jobNumber` string
  - `mail` string
  - `mobile` string
  - `nickname` string
  - `position` string
  - `postalAddress` string
  - `roleIds` integer[], required
  - `source` string
  - `username` 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)
