---
title: "Update an account"
method: PUT
path: "/accounts/{account_id}"
tags: ["Accounts"]
---

# Update an account

`PUT /accounts/{account_id}`

Update an account

## Path parameters

- `account_id` number, required

## Request body

- object
  - `name` string — The account name.
  - `domain` string — The account domain.
  - `picture` string — The account logo URL.
  - `size` number — The account employee count.
  - `website` string — The account website URL.
  - `description` string — The account description.
  - `address` object — The primary address of the account.
    - `id` number — The address ID.
    - `city` string — The address city.
    - `country` string — The address country.
    - `region` string — Deprecated. Use `state_region` instead.
    - `state_region` string — The address state or region.
    - `street` string — The address street.
    - `zip` string — The address ZIP/postal code.
    - `archived` boolean — Whether this address is archived.
    - `_dirty` boolean — Deprecated. This field is ignored.
  - `addresses` object[]
    - `id` number
    - `city` string
    - `country` string
    - `region` string — Deprecated. Use `state_region` instead.
    - `state_region` string
    - `street` string
    - `zip` string
    - `archived` boolean
    - `_dirty` boolean — Deprecated. This field is ignored.
  - `email` string — The account email address.
  - `email_addresses` object[] — List of email addresses associated with the account.
    - `id` number
    - `email` string
    - `archived` boolean
    - `_dirty` boolean — Deprecated. This field is ignored.
  - `phone_number` string — The primary phone number of the account.
  - `phone_numbers` object[] — List of phone numbers associated with the account.
    - `id` number
    - `number` string
    - `type` string
    - `archived` boolean
    - `_dirty` boolean — Deprecated. This field is ignored.
  - `social_profiles` string[] — List of social profiles associated with the account.
  - `tags` string[] — List of tags associated with the account.
  - `links` string — Account links.
  - `_dirty` boolean — Deprecated. This field is ignored.
  - `parent_account` number
  - `custom` object — Custom field values associated with the account.
  - `q` object
    - `condition` 'AND' | 'OR', required
    - `rules` object[], required
      - `id` string, required
      - `query_builder_id` string
      - `customfield_id` string, required
      - `label` string
      - `type` 'integer' | 'double' | 'boolean' | 'tri_state_boolean' | 'string' | 'long_string' | 'select' | 'date' | 'datetime' | 'file'
      - `input` string
      - `operator` 'equal' | 'not_equal' | 'in' | 'not_in' | 'less' | 'less_or_equal' | 'greater' | 'greater_or_equal' | 'between' | 'not_between' | 'begins_with' | 'not_begins_with' | 'contains' | 'not_contains' | 'ends_with' | 'not_ends_with' | 'is_empty' | 'is_not_empty' | 'is_null' | 'is_not_null' | 'true' | 'false' | 'past_less' | 'past_exactly' | 'past_more_than' | 'future_less' | 'future_exactly' | 'future_more_than' | 'after' | 'on' | 'before' | 'is' | 'is_not', required
      - `value` string[]
      - `entity` 'account' | 'person' | 'opportunity' | 'campaign' | 'tag' | 'task' | 'workflow' | 'workflow_record' | 'workflow_step_record' | 'lead'
      - `display_entity` 'Account' | 'Contact' | 'Opportunity' | 'Campaign' | 'Tag' | 'Task' | 'Workflow' | 'Lead'
      - `pipeline` number
      - `enabled` string, required
      - `internal` boolean
    - `order_by` string — Sort instructions. Provide either 'key' (ascending) or 'key desc' (descending). Default sort order is ascending. You can fetch available sort keys via a discover mode call.
    - `not` boolean
    - `valid` boolean
    - `search` string

## Response `default`

Successful

---

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