---
title: "Update account"
method: PATCH
path: "/api/auth/admin/accounts/{id}"
tags: ["Admin Accounts"]
---

# Update account

`PATCH /api/auth/admin/accounts/{id}`

Updates an account's attributes.

## Path parameters

- `id` string, required

## Request body

- UpdateAccountRequest
  - `access_token` string, nullable
  - `access_token_expires_at` string, date-time, nullable
  - `account_id` string, nullable
  - `id_token` string, nullable
  - `password` string, nullable
  - `provider_id` string, nullable
  - `refresh_token` string, nullable
  - `refresh_token_expires_at` string, date-time, nullable
  - `scope` string, nullable

## Response `200`

OK

- UpdateAccountResponse
  - `account` Account, required
    - `access_token` string, nullable
    - `access_token_expires_at` string, date-time, nullable
    - `account_id` string, required
    - `created_at` string, date-time, required
    - `id` string, required
    - `id_token` string, nullable
    - `password` string, nullable
    - `provider_id` string, required
    - `refresh_token` string, nullable
    - `refresh_token_expires_at` string, date-time, nullable
    - `scope` string, nullable
    - `updated_at` string, date-time, required
    - `user_id` string, required

## Changes

- **2026-07-08** `61a78375af21` — 6 info
  - the response property `account/account_id` became required for the status `200`
  - the response property `account/created_at` became required for the status `200`
  - the response property `account/id` became required for the status `200`
  - the response property `account/provider_id` became required for the status `200`
  - …2 more
- **2026-07-08** `2ff1d8d3f239` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/authula/apis/authula-api/changes/api/auth/admin/accounts/:id/patch.md)

---

[API](https://skmtc.dev/authula/apis/authula-api.md) · [All operations](https://skmtc.dev/authula/apis/authula-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/authula/authula-api/revisions/61a78375af21/schema)
