用户管理

创建新用户

管理员创建新用户

post/users

Request

  • Base URL
    https://localhost:2333/api/v1
  • URL
    https://localhost:2333/api/v1/users
  • Auth
    API key in header Authorization

Request body

passwordstring required
role'admin' | 'user' required
usernamestring required

Response

用户创建成功

codeinteger
messagestring
requestIdstring
successboolean
timestampstring

Example response

{
  "code": 200,
  "message": "操作成功",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}

Changes

No recorded changes to this operation across all 15 revisions of this API.