Start typing to search.

API Reference

Update a user

View Markdown
PUT /api/users/{id}

Superadmin can update any user (except self-delete). Admins can only update viewers. Superadmin role cannot be assigned via this endpoint.

Operation IDupdateUser

Authentication

  • BearerAuth·http bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Path parameters

idintegerrequired

Resource ID

Request body

This request body is required.

Content typeapplication/json

requestobject
3 properties
usernamestring
passwordstring
rolestring

Success response body

200User updated

User updated

Content typeapplication/json

responseobject
7 properties
idinteger
usernamestring
rolestring
totp_verifiedinteger
invite_pendingboolean
created_atstring · date-time
updated_atstring · date-time

Error responses

400Validation error

Validation error

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "VALIDATION_ERROR",
  "message": "Invalid input"
}

403Insufficient permissions

Insufficient permissions

No response content schema is documented.

404Resource not found

Resource not found

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}