Update a CRM integration
update_integrationChange a connected integration's settings, field mapping, routing rules or CRM user mapping, make it (or stop it being) the primary CRM, or import Follow Up Boss users/groups. Read the integration with get_integrations first and send back values in the same shapes; values that come from the CRM (field keys, tags, stages, events, CRM user ids, Facebook forms, inboxes) are listed by get_crm_options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | settings: the integration's name (max 255). | |
| sync | No | settings: sync toggles to change, e.g. {"is_sync_completed": true}. Keys: is_sync_lead_owner, is_sync_completed, is_sync_sms, is_sync_ai_scheduled_calls, is_sync_missed. Others keep their value. | |
| rules | No | routing: the complete ordered rule list, first match wins; replaces all rules. Omit to keep the rules; [] removes them all. | |
| action | Yes | settings: name, team_id, sync, settings. fields: field_mapping, is_ai_extract, object_type. routing: team_id (default team), rules, settings (trigger/tag). users: user_mapping. set_primary / unset_primary: the account's primary CRM. import_users: fub_ids, team_id, send_welcome. import_groups: group_ids. | |
| fub_ids | No | import_users: Follow Up Boss user ids from get_integrations include_importable=users. | |
| team_id | No | settings/routing: the default team leads go to when no rule matches (null for none). import_users: the team to add imported users to. | |
| settings | No | settings: keys to change in the integration's settings object as get_integrations shows it; nested objects merge, lists and scalars replace. Tags applied after a call (events.success/missed; Keap success/missed), the Facebook form_id and Inbox App number_id_<id> inboxes come from get_crm_options. routing: {"events": {"trigger": "…"}} (ActiveCampaign tag, Pipedrive stage, Wise Agent category — list them with get_crm_options) or {"tag": "…"} (Zoho). | |
| group_ids | No | import_groups: Follow Up Boss group ids from get_integrations include_importable=groups. | |
| object_type | No | fields, Salesforce only: Lead, Contact, Opportunity or a custom object API name. | |
| send_welcome | No | import_users: email new users their login (default true). | |
| user_mapping | No | users: Callingly user id → CRM user id (null to unlink), e.g. {"12": "345"}; CRM user ids come from get_crm_options kind users. Only the users you pass change. | |
| field_mapping | No | fields: Callingly field slug → value (see field_mapping.value_type_help), e.g. {"fname": "first_name", "phone": "phone"}. CRM field keys come from get_crm_options kind fields. Merged into the current mapping; null unmaps a field. | |
| is_ai_extract | No | fields: automatically extract lead data (Facebook, Webhook, Unbounce, Realtor, Email). | |
| integration_id | Yes | The integration, from get_integrations. |