E041: Update contact-entity link
PATCH /api/contact-links/:id
Edits the role or notes on a contact-to-entity link. Triggered from Customer or Vendor detail.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
{ "role": "billing", "isPrimary": false }
Response — 200 OK
{
"id": "uuid",
"contactId": "uuid",
"entityType": "customer",
"entityId": "uuid",
"role": "billing",
"isPrimary": true,
"createdAt": "..."
}
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such link. |
| 422 | validation_failed | Shape invalid. |