# Adding Unique Identifier to an existing Custom Object

**URL:** <https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443>\
**Category:** CRM\
**Tags:** enterprise\
**Created:** [February 13, 2022, 4:28pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443 "2022-02-13T16:28:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGirma](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dgirma/32/88643_2.png) [@DGirma](https://community.hubspot.com/u/DGirma)\
**Post date:** [February 13, 2022, 4:28pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443/1 "2022-02-13T16:28:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MAC-MCB](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mac-mcb/32/54436_2.png) [@MAC-MCB](https://community.hubspot.com/u/MAC-MCB)\
**Post date:** [February 13, 2022, 10:26pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443/2 "2022-02-13T22:26:49Z")

</div>

Hi @DGirma,

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}`  
[Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/crm-custom-objects)

 ![HubSpot Custom Object.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/5/55e4e62b7e1eaf9893f3efab31527f9a6dfcf54e.png)

Best Regards

**MARTIN MENSBO CHRISTIANSEN**

![MACMCB_0-1644791143467.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/6/d6ce09c055c08e03eb21d5389d1bcc2b1a81aaa3.png)

[www.mcb.dk](http://www.mcb.dk/en/hubspot)

---

<div class="post-metadata">

**Author:** ![CloudMaitre1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cloudmaitre1/32/101283_2.png) [@CloudMaitre1](https://community.hubspot.com/u/CloudMaitre1)\
**Post date:** [April 25, 2022, 12:22pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443/3 "2022-04-25T12:22:02Z")

</div>

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

@DGirma did you get this working using @MAC-MCB solution?

---

<div class="post-metadata">

**Author:** ![DGirma](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dgirma/32/88643_2.png) [@DGirma](https://community.hubspot.com/u/DGirma)\
**Post date:** [February 14, 2022, 3:59pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443/4 "2022-02-14T15:59:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AmandaAdams](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@AmandaAdams](https://community.hubspot.com/u/AmandaAdams)\
**Post date:** [April 11, 2025, 8:04pm UTC](https://community.hubspot.com/t/adding-unique-identifier-to-an-existing-custom-object/51443/5 "2025-04-11T20:04:56Z")

</div>

does anyone know if it’s posisble to do the reverse? DISABLE the unique identifier on an existing custom object?
