- v1
- auth
- route
- system-manage
- miniapp
创建用户
POST
/api/v1/system-manage/users
v1系统管理用户管理
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{token}}
Body 参数application/json
userName
string
Username
password
string
Password
userEmail
string <email>
Useremail
userGender
可选
Any of
枚举值:
123
默认值:
1
nickName
Nickname
Any of
userPhone
Userphone
Any of
userRoles
Userroles
Any of
status
可选
Any of
枚举值:
12
默认值:
1
示例
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system-manage/users' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
created_id
integer
必需
示例
{
"code": "0000",
"msg": "Created Successfully",
"data": {
"created_id": 7
}
}
🟠422Validation Error
修改于 2024-05-17 05:46:08