---
title: "Api Accounts Update 2"
method: PUT
path: "/api/accounts/{email}/"
tags: ["users"]
---

# Api Accounts Update 2

`PUT /api/accounts/{email}/`

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

## Path parameters

- `email` string, required

## Headers

- `Authorization` string, required

## Request body

- PlatformAccountDetailRequest — For retrieve operations - detailed account info with lightweight organization. Used by GET /api/accounts/{email}/
  - `email` string, required
  - `name` string
  - `username` string
  - `first_name` string
  - `last_name` string
  - `is_active` boolean
  - `created_at` string, date-time
  - `last_login` string, date-time, nullable

## Response `200`

- PlatformAccountDetail — For retrieve operations - detailed account info with lightweight organization. Used by GET /api/accounts/{email}/
  - `id` integer, required
  - `email` string, required
  - `name` string
  - `username` string
  - `first_name` string
  - `last_name` string
  - `is_active` boolean
  - `created_at` string, date-time
  - `last_login` string, date-time, nullable
  - `organization` PlatformAccountOrganization, required — Lightweight organization serializer for account detail view. Only includes essential fields - NOT the full OrganizationSerializer.
    - `id` integer, required
    - `name` string, required
    - `unique_organization_id` string
    - `status` 'active' | 'deleting' | 'inactive' — * `active` - Active * `deleting` - Deleting * `inactive` - Inactive

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
