System Admin

Promote a user to system administrator

Changed on

Grant system administrator privileges to a user (SystemAdmin only). Idempotent: re-promoting an existing system admin returns 200 with no DB write. Identify the user by email (preferred for human operators) or user_id (UUID, for API clients).

post/system/admin/promote

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/system/admin/promote
  • Auth
    none declared

Request body

emailstring
user_idstring

Response

User promoted successfully

avatarstring
can_access_all_tenantsboolean
created_atstring
emailstring
idstring
is_activeboolean
is_system_adminboolean
tenant_idinteger
updated_atstring
usernamestring

Changes