Update Hubspot Sync
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"mappings": [
{
"external_object": "<string>",
"object_type": "<string>",
"properties": {},
"write_back": false
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot"
payload = {
"enabled": True,
"mappings": [
{
"external_object": "<string>",
"object_type": "<string>",
"properties": {},
"write_back": False
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
mappings: [
{
external_object: '<string>',
object_type: '<string>',
properties: {},
write_back: false
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Update Hubspot Sync
Turn the HubSpot sync on or off and set which HubSpot object goes to which object type, property by property. Administrators only; the sync then writes as the user who saved it.
PUT
/
api
/
v1
/
crm
/
sync
/
hubspot
Update Hubspot Sync
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": true,
"mappings": [
{
"external_object": "<string>",
"object_type": "<string>",
"properties": {},
"write_back": false
}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot"
payload = {
"enabled": True,
"mappings": [
{
"external_object": "<string>",
"object_type": "<string>",
"properties": {},
"write_back": False
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
mappings: [
{
external_object: '<string>',
object_type: '<string>',
properties: {},
write_back: false
}
]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/sync/hubspot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));