Mär 28, 202411:54 AM - bearbeitet Apr 3, 20243:16 AM
Mitglied
Help Needed: Preventing Owner Change While Updating Lead Status via HubSpot API
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:
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.
The data we are sending - { "properties":[ { "property":"hs_lead_status", "value":"NEW_STATUS" }, { "property":"hubspot_owner_id", "value":"12345" } ] }
Help Needed: Preventing Owner Change While Updating Lead Status via HubSpot API
Thank you for getting back to us with your detailed response.
We have tried the following things you have suggested:
Approach 1:
-> Update Lead Status Only: Send a request to update the lead status (hs_lead_status) without including the hubspot_owner_id in the payload.
This was the first thing we tried and this is where we encountered the owner change issue first.
Approach 2:
-> Fetch the Contact Details: Before updating the contact, retrieve the existing contact details, including the hubspot_owner_id.
We tried this as well. We made a call to HubSpot API to get the current hubspot_owner_id and sent the same in the request for the status update. This didn’t work either.
Approach 3:
-> Ensure that your OAuth token has the necessary permissions to update contacts without changing their owner IDs.
We are not clear about this one. Could you please elaborate here?
We do want to know how we can make sure that the token permissions are correct?
Additional approach 4:
We use the legacy Hubspot APIs for our integration. We also tried using the latest /v3 api endpoints for the update. The issue still happened - the ownership changed along with the lead_status update.
—-----
Can you please help us figure out what can be going wrong here?