# PATCH /phone/call-logs/:call_log_id

**Resource:** [Phone](./phone.md)  
**MCP tool:** `update_phone_call_log`  
**Scopes:** `calls:write`  
**Write operation:** yes

Link a phone call to a contact / opportunity / company, or unlink it from a record it was linked to by mistake (calls are linked automatically from the caller's number). Returns the call with its linked records.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `call_log_id` | path | string | yes |  |
| `link_opportunity_id` | body | string | no | Link this conversation to an opportunity UUID. Idempotent. |
| `link_contact_id` | body | string | no | Link this conversation to a contact UUID. Idempotent. |
| `link_customer_id` | body | string | no | Link this conversation to a company (customer) UUID. Idempotent. |
| `unlink_opportunity_id` | body | string | no | Remove this conversation's link to an opportunity UUID, e.g. one it was linked to automatically by mistake. |
| `unlink_contact_id` | body | string | no | Remove this conversation's link to a contact UUID. |
| `unlink_customer_id` | body | string | no | Remove this conversation's link to a company (customer) UUID. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/phone/call-logs/:call_log_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"link_opportunity_id":"...","link_contact_id":"...","link_customer_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`