admin

Update User

Update a user as admin (can change role, email, active status).

Admin protections:

  • Cannot demote the last admin
  • Can promote users to admin
  • Can change email, name, password, active status
patch/api/v1/admin/users/{user_id}

Request

  • The document declares no server URL.
  • Auth: OAuth 2 (password, token URL /api/v1/auth/token)

Path parameters

user_idstring uuid required

Cookies

access_tokenstring nullable

Request body

namestring nullable
emailstring email nullable
role'admin' | 'user'

User roles for authorization.

is_activeboolean nullable
passwordstring nullable

Response

Successful Response

created_atstring date-time required
updated_atstring date-time required
emailstring email required
namestring nullable
idstring uuid required
role'admin' | 'user' required

User roles for authorization.

is_activeboolean required
profile_picture_urlstring uri nullable
last_login_atstring date-time nullable
time_zonestring nullable
is_oidc_userboolean

Changes

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