Hi,
Could you please guide us how we can update the lead_status of without modifying the hubspot_owner_id of the contact, using the HubSpot API ?
I will expand further below:
We are running integrations with SmartReach and HubSpot API. Our users connect their HubSpot account with SmartReach using the OAuth integration.
We are facing an issue where the owner of a contact is getting updated, when we try to just update the contact status, or add an activity to the contact.
When we use the property update call for contact to update the contact status column, the owner is changed too. We want to avoid the case where the owner is changed.
We are calling the HubSpot api in the following manner:
API in use -
POST https://api.hubapi.com/contact/v1/contact/vid/{person_id}/profile
The data we are sending:
{
“properties”:[
{
“property”:“hs_lead_status”,
“value”:“NEW_STATUS”
}
]
}
As you can see, we are trying to update the “hs_lead_status” property. However, we have noticed that this also updates the owner of the lead.
To work around this issue, we tried to first fetch the data for the lead using the respective HubSpot api; that gives us the “hubspot_owner_id” of the lead. We then send this same hubspot_owner_id explicitly in the update call.
This solution looks like the following -
API in use -
POST https://api.hubapi.com/contact/v1/contact/vid/{person_id}/profile
The data we are sending -
{
“properties”:[
{
“property”:“hs_lead_status”,
“value”:“NEW_STATUS”
},
{
“property”:“hubspot_owner_id”,
“value”:“12345”
}
]
}
// NOTE: the value we are sending for hubspot_owner_id above is the same owner id we get from https://api.hubapi.com/contacts/v1/contact/email/${email}/profile?property=hs_lead_status&property=email&property=hubspot_owner_id
But still the issue stays. We are at the end of the rope here and don’t know how to avoid the ownership change.
The only other thing that we are sending is the access token, but we don’t think that should be the issue here.
Best regards,
Animesh