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

# Update an account

`PATCH /accounts/{id}`

## Path parameters

- `id` string, required

## Request body

- AccountPatch
  - `billing_service` union
    - unknown
    - object
      - `type` 'quickbooks', required — Type of billing service used for the account
      - `quickbooks_id` integer, required — Id of the account in quickbooks
  - `stratus_id` string, nullable — Identification for stratus accounts
  - `name` string — The name associated with an account.
  - `log_retention` AccountLogRetention[] — An array of account log retention configuration.
    - `type` 'events', required — Type of log retention
    - `online_days` integer — Number of online days
    - `archive_days` integer — Number of archive days
    - `online_space_allowance` integer — Allowance for online space
    - `archive_space_allowance` integer — Allowance for archive space

## Response `200`

The account was successfully updated.

- Account
  - `billing_service` union
    - unknown
    - object
      - `type` 'quickbooks', required — Type of billing service used for the account
      - `quickbooks_id` integer, required — Id of the account in quickbooks
  - `stratus_id` string, nullable — Identification for stratus accounts
  - `name` string — The name associated with an account.
  - `log_retention` AccountLogRetention[] — An array of account log retention configuration.
    - `type` 'events', required — Type of log retention
    - `online_days` integer — Number of online days
    - `archive_days` integer — Number of archive days
    - `online_space_allowance` integer — Allowance for online space
    - `archive_space_allowance` integer — Allowance for archive space
  - `href` string, required — A reference to an account
  - `id` string, required — Deprecated. A unique identifier for the account.

---

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