Herald
OpenapiUsers

Update a user

Update user status or nickname. Email is read-only after creation. Requires `users.manage` permission.

PUT
/api/users/{userId}

Update user status or nickname. Email is read-only after creation. Requires users.manage permission.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

userId*string

User ID

Formatuuid

Request Body

application/json
  1. body
nickname?string|null
status?|
Formatint32

Response Body

User updated

application/json
  1. response
createdAt*string
email*string
id*string
Formatuuid
nickname?string|null
realmId*string
status*integer
Formatint32
Example Request
curl -X PUT 'https://example.com/api/users/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "createdAt": "string",
  "email": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "nickname": "string",
  "realmId": "string",
  "status": 0
}