system-admins

Demote System Admin

Demote a system administrator to regular user.

Protection:

  • Cannot demote initial admin (is_initial_admin=True)
  • Cannot demote last remaining admin

Requires: System Admin role

Args: user_id: User ID to demote

Returns: Success message

Raises: 404: User not found 400: User is not a system admin 403: Demote operation is protected (initial admin or last admin)

Example response: { "success": true, "message": "User admin2@example.com demoted to standard user" }

delete/api/v1/admin/system-admins/{user_id}

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/admin/system-admins/{user_id}
  • Auth: none declared

Path parameters

user_idstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.