# Update a company

```http
PATCH https://trydimmi.com/api/v1/companies/{company}
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `contacts:write`.

## Path parameters

- `company` (string, required): Id of the company, starting with cmp_, such as cmp_01jx2m8k4t. Find it with GET /companies.

## Body

- `add_tags` (string[] | null): Tag ids or names to add; a new name becomes a tag. 50 at most.
- `custom_attributes` (object): Values by key, merged into what the company has. null removes a key.
- `domain` (string): A domain name, such as example.com.
- `external_id` (string): Your own system's id of this record, such as user_8421.
- `name` (string): The name of the company.
- `notes` (string): Team-only notes, 10,000 characters at most, replacing the current notes.
- `remove_tags` (string[] | null): Ids of tags (tag_...) to remove.

## Response 200 (OK)

- `data` (object, required)
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `custom_attributes` (any, required): The company's custom attributes as an object of names and values, such as {"plan": "pro"}. An empty object when it has none.
  - `domain` (string | null, required): The company's web domain, such as acme.com, used to match it when it has no external id. Null when unknown.
  - `external_id` (string | null, required): The company's id in your own system, unique within the workspace. Null when none was given.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `name` (string, required): The company's name.
  - `notes` (string | null, required): Free-text notes the team keeps about the company. Null when there are none.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `people_count` (integer): How many contacts belong to the company. Given only in lists; absent when one company is read.
  - `tags` (object[] | null, required): The tags on the company, each with its id and name.
    - `color` (string | null, required): The tag's color as a hex value, such as #ff5500, kept as the workspace wrote it; null when it has none.
    - `icon` (string | null, required): Name of the tag's icon; null when it has none.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `name` (string, required): The tag's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PATCH \
  --url 'https://trydimmi.com/api/v1/companies/{company}' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "add_tags": [
    "<string>"
  ],
  "custom_attributes": {
    "<key>": null
  },
  "domain": "<string>",
  "external_id": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "remove_tags": [
    "<string>"
  ]
}'
```

## Example response

```json
{
  "data": {
    "created_at": "2026-11-01T09:30:00Z",
    "custom_attributes": null,
    "domain": "<string>",
    "external_id": "<string>",
    "id": "<string>",
    "name": "<string>",
    "notes": "<string>",
    "object": "<string>",
    "people_count": 123,
    "tags": [
      {
        "color": "<string>",
        "icon": "<string>",
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      }
    ],
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
