hs_object_id is not treated unique by default for batch upsert api call for Contacts Obj

Status: Idea Submitted

This is frustrating why is Hubspot not treating hs_object_id unique by default for the batch upsert api .
I am using oauth to intergrate multiple account in my application , i can’t be updating properties of column there . It should be by default unique.
The issues i am facing because of this is :
1) cannot update email in batch,if i use idProperty as Email,
2) I have some contacts which don’t have email and have phone only . But phone property is also not marked unique by default which seems correct.
Solution i need:
hs_object_id should be made default. If not this give me a unique id for specific object update eg(Contact)

{“status”:“error”,“message”:“Unable to perform update/upsert by non-unique 0-1 property hs_object_id in portal ID 47409788”,“correlationId”:“b62c1d17-e7e2-41b9-a958-8257a8e0905d”,“category”:“VALIDATION_ERROR”}

Hi Naguon,

Just came across this myself. I get why its not allowed right now because the upsert is both create and update, you can’t create a new HubSpot Record ID with an existing id. You can now use hs_object_id on the /update endpoint of the batch API, just exclude the idProperty field and keep the id field as the hs_object_id.

Alternatively you can get your own unique id from an ERP or other place storing the changes you want to make, use that ID as a new field in HubSpot, tick the is unique tickbox on creation of field.