Adding Unique Identifier to an existing Custom Object
SOLVE
I have a custom object I created and I need to add a unique identifier to it, do I have to delete the object and create a brand new one or can I edit the existing custom object to add the unique Identifier?
It depends a lot on what your use case is for your new custom object.
If it's because you want to change primaryDisplayProperty and you do not have any real data on your custom object yet - I would advise you to create a new one and set "hasUniqueValue": true
If instead it is because you want one of your properties to be unique, so no new object can be created if e.g. VIN already exists - I would advise you to update your custom object with PATCH/crm/v3/schemas/{objectType} https://developers.hubspot.com/docs/api/crm/crm-custom-objects
Adding Unique Identifier to an existing Custom Object
SOLVE
Awesome, yes use case is exactly as you described with the VIN. didn't realize I could use the PATCH command to make object have unique value. Thank for your help
It depends a lot on what your use case is for your new custom object.
If it's because you want to change primaryDisplayProperty and you do not have any real data on your custom object yet - I would advise you to create a new one and set "hasUniqueValue": true
If instead it is because you want one of your properties to be unique, so no new object can be created if e.g. VIN already exists - I would advise you to update your custom object with PATCH/crm/v3/schemas/{objectType} https://developers.hubspot.com/docs/api/crm/crm-custom-objects
Adding Unique Identifier to an existing Custom Object
SOLVE
Hello, I tried to update the CO using the PATCH per your suggestion and cannot get it to update the UV to true Hubspot support is advising that it is not possible to change the UniqueValue from false to true