---
title: "Demote System Admin"
method: DELETE
path: "/api/v1/admin/system-admins/{user_id}"
tags: ["system-admins"]
---

# Demote System Admin

`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

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"
    }

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
