Admin

Approve User

Approve a pending user with the specified role (admin only).

post/admin/users/{user_id}/approve/

Request

  • The document declares no server URL.
  • Auth: one of:
    • OAuth 2 (password, token URL /api/auth/login)
    • API key in header X-Api-Key
    • API key in query parameter api_key

Path parameters

user_idstring uuid required

Request body

rolestring required

Role to assign to the approved user: 'admin', 'editor', or 'viewer'.

Response

Successful Response

idstring uuid required
usernamestring required
emailstring nullable required
is_activeboolean required
status'active' | 'pending' | 'suspended' | 'deactivated' required

Account status: active, pending, suspended, or deactivated.

last_login_atstring date-time nullable required
created_atstring date-time required
rolesstring[] required

Assigned role names, e.g. ['admin', 'editor']

can_reset_passwordboolean required

Whether an administrator can set a local password for this account. True for local accounts even when an identity provider is also linked.

Changes

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