---
title: "Update Linked CRM Records"
method: PUT
path: "/conversations/{id}/linked-crm-records"
tags: ["Conversation", "CRM"]
---

# Update Linked CRM Records

`PUT /conversations/{id}/linked-crm-records`

Updates the CRM records (accounts, contacts, etc.) linked to a conversation. Replaces the current set of linked records with the provided list.

## Path parameters

- `id` string, required

## Request body

- UpdateLinkedCrmRecordsRequest
  - `opportunity_id` string — UUID of the opportunity to associate the CRM records with
  - `linked_crm_records` LinkedCrmRecordInput[] — List of CRM records to link to the conversation
    - `id` string, required — External CRM record ID
    - `code` string, required — CRM entity type code (e.g., 'salesforce_account', 'hubspot_contact')

## Response `200`

Linked CRM records updated successfully

- UpdateLinkedCrmRecordsResponse
  - `success` boolean, required — Indicates whether the linked CRM records were updated successfully

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - valid API key required
- `404` — Conversation not found
- `default` — Unexpected error occurred

---

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