<!-- Source: https://docs.vinsi.ai/api-docs/crm-company-update -->
# Update Company

Partially update a CRM company. Only fields present in the body are changed. ownerId must be a user in your organization; send it (or primaryContactId) as null to clear it. Returns the updated company.

```http
PUT https://dashboard.vinsi.ai/api/crm/companies/{companyId}
```

## Authentication

Send your API key in the `x-api-key` header. Create keys in the VINSI dashboard under Settings → API Keys.

## Headers

| Name | Type | Required |
|---|---|---|
| Content-Type | string | yes (application/json) |
| x-api-key | string | yes |

## Path parameters

| Name | Example |
|---|---|
| companyId | 318 |

## Example request body

```json
{
  "name": "Acme Dental",
  "industry": "Healthcare",
  "website": "https://acme-dental.example.com",
  "phone": "+15555550100",
  "ext": "",
  "email": "info@acme-dental.example.com",
  "address": "100 Main St",
  "city": "San Diego",
  "state": "CA",
  "zip": "92101",
  "country": "US",
  "type": "client",
  "notes": "",
  "primaryContactId": 1042,
  "ownerId": "cmexampleuser0000000000001"
}
```

## Example request

```bash
curl -X PUT 'https://dashboard.vinsi.ai/api/crm/companies/318' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Acme Dental","industry":"Healthcare","website":"https://acme-dental.example.com","phone":"+15555550100","ext":"","email":"info@acme-dental.example.com","address":"100 Main St","city":"San Diego","state":"CA","zip":"92101","country":"US","type":"client","notes":"","primaryContactId":1042,"ownerId":"cmexampleuser0000000000001"}'
```

## Example response

```json
{
  "id": 318,
  "organizationId": "cmexampleorg00000000000001",
  "name": "Acme Dental",
  "industry": "Healthcare",
  "website": "https://acme-dental.example.com",
  "phone": "+15555550100",
  "ext": "",
  "email": "info@acme-dental.example.com",
  "address": "100 Main St",
  "city": "San Diego",
  "state": "CA",
  "zip": "92101",
  "country": "US",
  "type": "client",
  "notes": null,
  "ownerId": "cmexampleuser0000000000001",
  "createdAt": "2026-09-01T18:30:00.000Z",
  "updatedAt": "2026-09-16T16:40:00.000Z",
  "primaryContactId": 1042,
  "reviewRating": "",
  "reviewCount": "",
  "logoUrl": null
}
```

