---
title: "新增用户接口"
method: POST
path: "/api/v1/admin/add"
tags: ["System系统管理"]
---

# 新增用户接口

`POST /api/v1/admin/add`

新增用户接口

## Request body

- ModelAddSysAdminDto
  - `deptId` integer, required — 部门id
  - `email` string, required — 邮箱
  - `nickname` string, required — 昵称
  - `note` string — 备注
  - `password` string, required — 密码
  - `phone` string, required — 手机号
  - `postId` integer, required — 岗位id
  - `roleId` integer, required — 角色id
  - `status` integer, required — 状态：1->启用,2->禁用
  - `username` string, required — 用户名

## Response `200`

OK

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/versions/25cac8835c4c/schema)
