PATCH
/
api
/
crm_integrations
/
{heron_id}
curl --request PATCH \
  --url https://app.herondata.io/api/crm_integrations/{heron_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "auth": {},
  "config": {
    "data_source_accounts_config": {
      "description": "A company or person",
      "external_lookup_config": {
        "external_lookup_fields_and": [
          "<string>"
        ],
        "external_lookup_fields_or": [
          "<string>"
        ],
        "sort_field_name": "CreatedDate",
        "sort_order": "ASC"
      },
      "external_name": "Account",
      "field_mappings": [
        {
          "external_lookup_field_name": "<string>",
          "external_object_name_for_id": "Account",
          "field_name": "Name",
          "heron_company_attribute_label": "owner_1_first_name",
          "max_length": 255,
          "overwrite_on_update": true,
          "regex_remove": "pattern",
          "required": true,
          "static_value": "static value",
          "static_value_key": "date_today",
          "value_mapping_name": "state",
          "value_type": "Text"
        }
      ],
      "is_optional": false,
      "key": "Account",
      "required_ids": [
        {
          "alias": "Company",
          "external_name": "Account"
        }
      ],
      "static_data": [
        {
          "key": "status",
          "value": "<any>"
        }
      ]
    },
    "default_id": {
      "alias": "Company",
      "external_name": "Account"
    },
    "object_configs": [],
    "policy_evaluation_config": {
      "external_object_name": "Opportunity",
      "failure_reason_external_name": "Failure_Reason__c",
      "result_external_name": "Submission_Result_from_Heron__c"
    },
    "sync_file_classes": {},
    "value_mappings": []
  },
  "failure_notification_channel": null,
  "instance_url": "https://sandbox.salesforce.com",
  "is_enabled": true,
  "is_live": true,
  "provider": "salesforce",
  "secret": "<string>"
}'
{
  "config": {
    "data_source_accounts_config": {
      "description": "A company or person",
      "external_lookup_config": {
        "external_lookup_fields_and": [
          "<string>"
        ],
        "external_lookup_fields_or": [
          "<string>"
        ],
        "sort_field_name": "CreatedDate",
        "sort_order": "ASC"
      },
      "external_name": "Account",
      "field_mappings": [
        {
          "external_lookup_field_name": "<string>",
          "external_object_name_for_id": "Account",
          "field_name": "Name",
          "heron_company_attribute_label": "owner_1_first_name",
          "max_length": 255,
          "overwrite_on_update": true,
          "regex_remove": "pattern",
          "required": true,
          "static_value": "static value",
          "static_value_key": "date_today",
          "value_mapping_name": "state",
          "value_type": "Text"
        }
      ],
      "is_optional": false,
      "key": "Account",
      "required_ids": [
        {
          "alias": "Company",
          "external_name": "Account"
        }
      ],
      "static_data": [
        {
          "key": "status",
          "value": "<any>"
        }
      ]
    },
    "default_id": {
      "alias": "Company",
      "external_name": "Account"
    },
    "object_configs": [],
    "policy_evaluation_config": {
      "external_object_name": "Opportunity",
      "failure_reason_external_name": "Failure_Reason__c",
      "result_external_name": "Submission_Result_from_Heron__c"
    },
    "sync_file_classes": {},
    "value_mappings": []
  },
  "failure_notification_channel": null,
  "heron_id": "<string>",
  "instance_url": "https://sandbox.salesforce.com",
  "is_enabled": true,
  "is_live": true,
  "provider": "salesforce"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

heron_id
string
required

Body

application/json
auth
object

Authentication details for the CRM integration

config
object

The configuration for the CRM integration

failure_notification_channel
string | null

The channel to send failure notifications to

instance_url
string

Base URL of the CRM integration

Example:

"https://sandbox.salesforce.com"

is_enabled
boolean
default:true

Whether the integration is enabled

Example:

true

is_live
boolean
default:true

Whether the integration is live

Example:

true

provider
enum<string>

The CRM provider

Available options:
salesforce,
lendsmart,
orgmeter,
centrex,
lendsaas,
quickbase,
zoho,
origami,
dynamics,
nirvana,
in_memory
secret
string

A secret key for the CRM integration

Response

200 - application/json
Ok
config
object
required

The configuration for the CRM integration

instance_url
string
required

Base URL of the CRM integration

Example:

"https://sandbox.salesforce.com"

provider
enum<string>
required

The CRM provider

Available options:
salesforce,
lendsmart,
orgmeter,
centrex,
lendsaas,
quickbase,
zoho,
origami,
dynamics,
nirvana,
in_memory
failure_notification_channel
string | null

The channel to send failure notifications to

heron_id
string
is_enabled
boolean
default:true

Whether the integration is enabled

Example:

true

is_live
boolean
default:true

Whether the integration is live

Example:

true