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

# Update account

`PATCH /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

---

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