# Update a contact

URL: /docs/api/merchant/crm/update-a-contact

## PATCH /v1/merchant/crm/contacts/{id}

```http
PATCH https://api.elaraone.app/api/v1/merchant/crm/contacts/{id}
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | integer | yes |  |
| `X-Client-IP` | header | string |  | Optional. IP address of the shopper (one IPv4/IPv6, no port, no list). Honoured only together with a valid X-Tenant-Secret; ignored otherwise. Used for rate limits and recorded with form submissions. |
| `X-Tenant-Secret` | header | string |  | Optional here. Server secret of the store: server-to-server only, never from a browser. Enables X-Client-IP. |

### Request body (`application/json`)

| Field | Type | Required | Description |
|---|---|---|---|
| `first_name` | string (nullable) |  |  |
| `last_name` | string (nullable) |  |  |
| `title` | string (nullable) |  |  |
| `job_title` | string (nullable) |  |  |
| `email` | string (nullable) |  |  |
| `phone` | string (nullable) |  |  |
| `lifecycle_stage` | string (nullable) |  |  |
| `owner_id` | integer (nullable) |  |  |
| `company_id` | integer (nullable) |  |  |
| `tags` | string[] |  |  |
| `add_tags` | string[] |  |  |
| `remove_tags` | string[] |  |  |
| `custom_fields` | string[] |  |  |

### Responses

- **200**: Success.
- **401**: Unauthenticated
- **402**: Payment required. Branch on `error.code`: - `TENANT_PAYMENT_REQUIRED`: this store is on payment hold. Show a "store temporarily unavailable" page; do not retry the request.
- **403**: Authorization error
- **404**: Not found: `FEATURE_NOT_ENABLED` when this store does not have the CRM feature on.
- **422**: Validation error
- **429**: `RATE_LIMITED`: the API budget of the store (per store and caller IP) is spent. Wait for `Retry-After`; a sync job should page with `filter[updated_since]` rather than re-reading everything.