用户管理

更新用户信息

管理员更新指定用户的信息

put/users/{id}

Request

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

Path parameters

idstring required

用户ID

Request body

needResetboolean
passwordstring
role'admin' | 'auditor' | 'configurator' | 'user'
usernamestring

Response

用户更新成功

codeinteger

HTTP状态码

dataunknown
errorstring

错误信息(当success=false时)

messagestring

响应消息

requestIdstring

请求ID,用于跟踪

successboolean

是否成功

timestampstring

响应时间戳

Example response

{
  "code": 200,
  "error": "参数错误",
  "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.