v3 Contact Create API Throws Error On Duplicate Email Address

I use: https://legacydocs.hubspot.com/docs/methods/contacts/create_or_update . Because it is a guaranteed atomic upsert which cannot screw up a contact, to do the create, and the hubspot_owner_id field or the V3 assoc APIs to make any needed assoc updates.

Unfortunately, only Contact has a guaranteed safe upsert, and not any other object, and only in the obsolete API. There is some “idProperty” stuff in the V3 API which is supposed to help, but it is not working yet and gives errors when you try it, last time I checked. This is something I badly wanted to see fixed, because the current approach has a TOCTTOU vulnerability aka race condition.