curl --request PUT \
--url https://api.gocobalt.io/api/v2/public/config \
--header 'Content-Type: application/json' \
--header 'linked_account_id: <linked_account_id>' \
--header 'x-api-key: <api-key>' \
--data '{
"slug": "<string>",
"config_id": "<string>",
"fields": {
"64abea6d941ba774d124b19c": "<string>"
},
"workflows": [
{
"id": "<string>",
"enabled": true,
"fields": {
"64abea6d941ba774d124b19c": "<string>"
}
}
]
}'
{
"slug": "mailerlite",
"config_id": "config_4",
"fields": [
{
"required": false,
"id": "646473c7e7b74deee820458f",
"name": "MailerLite Field Mapping",
"field_type": "map",
"options": [
{
"name": "City",
"value": "city"
},
{
"name": "Company",
"value": "company"
},
{
"name": "Country",
"value": "country"
},
{
"name": "Last name",
"value": "last_name"
},
{
"name": "Name",
"value": "name"
},
{
"name": "Phone",
"value": "phone"
}
],
"labels": [
{
"name": "Customer Name",
"value": "name"
},
{
"name": "Customer Last Name",
"value": "last_name"
},
{
"name": "Customer's Company",
"value": "company"
}
]
}
],
"workflows": [
{
"id": "649d230c2ce6b9b07b163e61",
"name": "Add a Subscriber to Mailerlite",
"description": "",
"enabled": false,
"fields": []
}
]
}
curl --request PUT \
--url https://api.gocobalt.io/api/v2/public/config \
--header 'Content-Type: application/json' \
--header 'linked_account_id: <linked_account_id>' \
--header 'x-api-key: <api-key>' \
--data '{
"slug": "<string>",
"config_id": "<string>",
"fields": {
"64abea6d941ba774d124b19c": "<string>"
},
"workflows": [
{
"id": "<string>",
"enabled": true,
"fields": {
"64abea6d941ba774d124b19c": "<string>"
}
}
]
}'
{
"slug": "mailerlite",
"config_id": "config_4",
"fields": [
{
"required": false,
"id": "646473c7e7b74deee820458f",
"name": "MailerLite Field Mapping",
"field_type": "map",
"options": [
{
"name": "City",
"value": "city"
},
{
"name": "Company",
"value": "company"
},
{
"name": "Country",
"value": "country"
},
{
"name": "Last name",
"value": "last_name"
},
{
"name": "Name",
"value": "name"
},
{
"name": "Phone",
"value": "phone"
}
],
"labels": [
{
"name": "Customer Name",
"value": "name"
},
{
"name": "Customer Last Name",
"value": "last_name"
},
{
"name": "Customer's Company",
"value": "company"
}
]
}
],
"workflows": [
{
"id": "649d230c2ce6b9b07b163e61",
"name": "Add a Subscriber to Mailerlite",
"description": "",
"enabled": false,
"fields": []
}
]
}
hubspot
linked_account_id
is considered as the config_id
by default.slug
Show Example properties
"649ade09c7b80fc6f0a3d1bc": {
"amount": "amount_in_home_currency",
"close_span": "days_to_close"
}
"64abea6d941ba774d124b19c": "default"
Show child attributes
Show Example properties
"649ade09c7b80fc6f0a3d1bc": {
"amount": "amount_in_home_currency",
"close_span": "days_to_close"
}
"64abea6d941ba774d124b19c": "default"
Show properties
text
, number
, select
, map
Show properties
Show properties
text
, number
, select
, map
{
"slug": "mailerlite",
"config_id": "config_4",
"fields": [
{
"required": false,
"id": "646473c7e7b74deee820458f",
"name": "MailerLite Field Mapping",
"field_type": "map",
"options": [
{
"name": "City",
"value": "city"
},
{
"name": "Company",
"value": "company"
},
{
"name": "Country",
"value": "country"
},
{
"name": "Last name",
"value": "last_name"
},
{
"name": "Name",
"value": "name"
},
{
"name": "Phone",
"value": "phone"
}
],
"labels": [
{
"name": "Customer Name",
"value": "name"
},
{
"name": "Customer Last Name",
"value": "last_name"
},
{
"name": "Customer's Company",
"value": "company"
}
]
}
],
"workflows": [
{
"id": "649d230c2ce6b9b07b163e61",
"name": "Add a Subscriber to Mailerlite",
"description": "",
"enabled": false,
"fields": []
}
]
}