primary (data-exchange) and/or send_visits flags on a confirmed CRM connection. Applies a partial (merge-patch) update: only the flags named in the request are changed; any flag you omit is left untouched. Setting primary: true demotes the company's current primary connection in the same operation. send_visits cannot be toggled on contact connections. Suggestions cannot be updated.crm_records:write OAuth2 scope.X-Api-Key: ********************{
"data": {
"attributes": {
"primary": true,
"send_visits": false
},
"type": "crm_connection"
}
}curl --location --request PATCH 'https://api.leadfeeder.com/v1/crm-connections/42_159001425_9f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f?account_id=123456' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"attributes": {
"primary": true,
"send_visits": false
},
"type": "crm_connection"
}
}'{
"data": {
"attributes": {
"enrichment_available": true,
"primary": true,
"send_visits": true
},
"id": "42_159001425_9f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
"relationships": {
"crm_record": {
"id": "9f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
"type": "crm_organization"
}
},
"type": "crm_connection"
},
"meta": {
"request_id": "cf054205-dd8c-4473-8689-07c30fe0789f"
}
}