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

# Update account

`PATCH /accounts/{externalId}`

## Request

- Base URL: `https://api.sequenzy.com/api/v1`
- URL: `https://api.sequenzy.com/api/v1/accounts/{externalId}`
- Auth: HTTP bearer

Updates name, domain and attributes of an existing account. Returns 404 when the account does not exist.

## Request body

- AccountPatchInput
  - `name` string, nullable
  - `domain` string, nullable
  - `attributes` object
  - `replaceAttributes` boolean

## Response `200`

Account updated

- object
  - `success` boolean
  - `account` Account: A B2B account (organization, workspace or team) that contacts belong to.
    - `id` string
    - `externalId` string: Customer-owned organization ID, unique per workspace.
    - `name` string, nullable
    - `domain` string, nullable
    - `attributes` object: Account attributes, fanned out to members as `account.<name>`.
    - `memberCount` integer
    - `lastEventAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: The request body or parameters are invalid
- `404`: The requested resource does not exist

## Changes

- **2026-10-16** `db3873ca3d4d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/accounts/:externalId/patch.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) - [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sequenzy/apis/sequenzy-api/revisions/8156dc12d8b4?raw)
