# Error updating Custom Object Labels

**URL:** <https://community.hubspot.com/t/error-updating-custom-object-labels/30585>\
**Category:** APIs & Integrations\
**Created:** [January 21, 2021, 6:30pm UTC](https://community.hubspot.com/t/error-updating-custom-object-labels/30585 "2021-01-21T18:30:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lynton/32/31184_2.png) [@lynton](https://community.hubspot.com/u/lynton)\
**Post date:** [January 21, 2021, 6:30pm UTC](https://community.hubspot.com/t/error-updating-custom-object-labels/30585/1 "2021-01-21T18:30:48Z")

</div>

When the custom objects api launched, we were getting errors when updating a custom object definition with the “labels” attribute. When the labels stayed the same, we got an error. So we changed our payload to only send the labels when renaming an object.

Now, we are getting an error when trying to rename an object. Example:

PATCH [https://api.hubapi.com/crm-object-schemas/v3/schemas/2-1256197](https://api.hubapi.com/crm-object-schemas/v3/schemas/2-1256197)) :

> {
> 
> “status”: “error”,
> 
> “message”: “Association definition name cannot be changed after creation”,
> 
> “correlationId”: “a1c91f1d-75d4-4230-b67d-2df61d10ab40”,
> 
> “category”: “VALIDATION\_ERROR”
> 
> }
> 
> We are now unable to rename a custom object definition. There appears to be a bug in the custom object definnitions api. Let us know if we should be trying something different in the payload.

---

<div class="post-metadata">

**Author:** ![mcook](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcook/32/14279_2.png) [@mcook](https://community.hubspot.com/u/mcook)\
**Post date:** [January 21, 2021, 7:48pm UTC](https://community.hubspot.com/t/error-updating-custom-object-labels/30585/2 "2021-01-21T19:48:15Z")

</div>

Hi lynton,

Could you please try your PATCH again? This issue should now be fixed. 😀

If you’re still having issues, please don’t hesitate to reach out with further questions!

---

<div class="post-metadata">

**Author:** ![lynton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lynton/32/31184_2.png) [@lynton](https://community.hubspot.com/u/lynton)\
**Post date:** [January 21, 2021, 10:10pm UTC](https://community.hubspot.com/t/error-updating-custom-object-labels/30585/3 "2021-01-21T22:10:44Z")

</div>

It is working now, thank you!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 22, 2021, 5:02pm UTC](https://community.hubspot.com/t/error-updating-custom-object-labels/30585/4 "2021-01-22T17:02:59Z")

</div>

Magic!
