---
title: "Update an account (master data only)"
method: PATCH
path: "/api/v1/iqbooks/organisations/{organisationId}/accounts/{id}"
tags: ["IQ Books — Accounts"]
---

# Update an account (master data only)

`PATCH /api/v1/iqbooks/organisations/{organisationId}/accounts/{id}`

## Request

- Base URL: `https://api.reconcileiq.com`
- URL: `https://api.reconcileiq.com/api/v1/iqbooks/organisations/{organisationId}/accounts/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Renames an account and/or changes its code. Master-data only; posts no journal. Requires a write role (owner/admin/bookkeeper) and scope `iqbooks:write`. A duplicate code returns 409.

## Path parameters

- `organisationId` integer, required
- `id` integer, required

## Request body

- object
  - `name` string
  - `code` string

## Response `200`

Updated.

- object
  - `data` Account, required
    - `id` integer
    - `organisation_id` integer
    - `code` string
    - `name` string
    - `account_type` string: ASSET, LIABILITY, EQUITY, REVENUE, EXPENSE, SUSPENSE (native uppercase).
    - `role` string, nullable
    - `is_system` boolean
    - `is_bank_account` boolean
    - `archived` boolean
    - `archived_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: The request body is not syntactically valid JSON. Returned in the standard envelope with an X-Request-Id, before authentication runs.
- `401`: Missing, invalid, or revoked API key.
- `403`: Authenticated but the key lacks the required scope.
- `404`: Resource not found, or not visible to the caller (no existence leak).
- `409`: Conflict with current resource state (e.g. duplicate code, already voided).
- `422`: CodeIQ / IQ Books strict-format contract violation.

---

[API](https://skmtc.dev/reconcileiq/apis/reconcileiq-public-api.md) · [All operations](https://skmtc.dev/reconcileiq/apis/reconcileiq-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/reconcileiq/apis/reconcileiq-public-api/revisions/61592074d811?raw)
