CRM
v1

Update CRM Connection

Changed on

Update the 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.

Credit Note: Updating a CRM connection does not consume credits.

:::info Requires the crm_records:write OAuth2 scope. :::

patch/v1/crm-connections/{id}

Request

  • Base URL
    https://api.leadfeeder.com
  • URL
    https://api.leadfeeder.com/v1/crm-connections/{id}
  • Auth
    • API key in header X-Api-Key
    • or OAuth 2
      Authorization code: https://api.leadfeeder.com/v1/oauth/authorize
      Token URL: https://api.leadfeeder.com/v1/oauth/token scopes: crm_records:write

Path parameters

idstring required

The CRM connection ID — the composite <integration_connection_id>_<local_id>_<crm_record_uuid> returned as the connection's id.

Query parameters

account_idstring required

The Leadfeeder Account ID. The Account ID can be retrieved using the List Accounts endpoint.

Request body

Response

Success

Example response

{
  "data": {
    "relationships": {
      "crm_record": {
        "relationships": {
          "crm_owner": {
            "type": "crm_user"
          }
        },
        "type": "crm_organization"
      }
    },
    "type": "crm_connection"
  },
  "meta": {
    "request_id": "cf054205-dd8c-4473-8689-07c30fe0789f"
  }
}

Changes