---
title: "Update an account"
method: PUT
path: "/accounting/{connection_id}/account/{id}"
tags: ["accounting", "account"]
---

# Update an account

`PUT /accounting/{connection_id}/account/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/accounting/{connection_id}/account/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingAccount: Chart of accounts
  - `id` string: Identifier used by the SaaS application to uniquely identify the Account
  - `created_at` string, date-time: Date and time when the Account was created, in ISO 8601 format and UTC (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: Date and time when the Account was last updated, in ISO 8601 format and UTC (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Account name
  - `description` string: Account description
  - `type` 'ACCOUNTS_PAYABLE' | 'ACCOUNTS_RECEIVABLE' | 'BANK' | 'CREDIT_CARD' | 'FIXED_ASSET' | 'LIABILITY' | 'EQUITY' | 'EXPENSE' | 'REVENUE' | 'OTHER': Account type, such as BANK. EQUITY, ASSET, ...
  - `status` 'ACTIVE' | 'ARCHIVED': Account status, such as ACTIVE or ARCHIVED
  - `balance` number: Balance of the account.
  - `currency` string: Account’s currency, in ISO 4217 format (e.g. U.S. dollars is USD)
  - `customer_defined_code` string: Identifier for tracking and categorizing accounts for reporting or analysis purposes that is defined by the end-customer
  - `is_payable` boolean: True if the account is an “accounts payable” account
  - `parent_id` string: The parent account ID for this account
  - `taxonomy` AccountingAccountTaxonomy[]
    - `type` 'CLASSIFICATION' | 'GROUP' | 'SUBGROUP' | 'SYSTEM_ROLE' | 'OTHER', required
    - `original_type` string
    - `value` string, required
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- AccountingAccount: Chart of accounts
  - `id` string: Identifier used by the SaaS application to uniquely identify the Account
  - `created_at` string, date-time: Date and time when the Account was created, in ISO 8601 format and UTC (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: Date and time when the Account was last updated, in ISO 8601 format and UTC (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Account name
  - `description` string: Account description
  - `type` 'ACCOUNTS_PAYABLE' | 'ACCOUNTS_RECEIVABLE' | 'BANK' | 'CREDIT_CARD' | 'FIXED_ASSET' | 'LIABILITY' | 'EQUITY' | 'EXPENSE' | 'REVENUE' | 'OTHER': Account type, such as BANK. EQUITY, ASSET, ...
  - `status` 'ACTIVE' | 'ARCHIVED': Account status, such as ACTIVE or ARCHIVED
  - `balance` number: Balance of the account.
  - `currency` string: Account’s currency, in ISO 4217 format (e.g. U.S. dollars is USD)
  - `customer_defined_code` string: Identifier for tracking and categorizing accounts for reporting or analysis purposes that is defined by the end-customer
  - `is_payable` boolean: True if the account is an “accounts payable” account
  - `parent_id` string: The parent account ID for this account
  - `taxonomy` AccountingAccountTaxonomy[]
    - `type` 'CLASSIFICATION' | 'GROUP' | 'SUBGROUP' | 'SYSTEM_ROLE' | 'OTHER', required
    - `original_type` string
    - `value` string, required
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` unknown
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
