# Update records created in custom object

**URL:** <https://community.hubspot.com/t/update-records-created-in-custom-object/77033>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [March 13, 2023, 11:15am UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033 "2023-03-13T11:15:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABello86](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@ABello86](https://community.hubspot.com/u/ABello86)\
**Post date:** [March 13, 2023, 11:15am UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033/1 "2023-03-13T11:15:31Z")

</div>

Hello guys,  
I got stuck while creating an integration on creating records for new created custom objects. The issue is that i cannot find the api that helps get the records under a specific custom object and also updating them

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 14, 2023, 7:41pm UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033/2 "2023-03-14T19:41:48Z")

</div>

Hi, @ABello86 👋 Here’s a few quick examples from the [Custom Objects documentation](https://developers.hubspot.com/docs/api/crm/crm-custom-objects):  
In the tab group for Basic, on the Endpoints tab, you’ll find

- Create a record (for your Custom Object) **POST** `/crm/v3/objects/{objectType}`
- Get a record by ID **GET** `/crm/v3/objects/{objectType}/{objectId}`
- Update a record **PATCH** `/crm/v3/objects/{objectType}/{objectId}`

For example, I have a custom object called Cats with one record named Tuxedo:

- its Object ID is 2-12170198
- the Record ID is 5419757487
- I have a property called Skill

 ![CleanShot 2023-03-14 at 13.26.48 2.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/3fd349b9211761f2a56326fb48055a70e87b04f5.png)

- to update this record, my request would look like this:

- and the successful response:

 ![CleanShot 2023-03-14 at 13.27.28 2.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/5/55cc18cdcf082d9935fa81a977726e2b87e9972c.png)

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![DarMan](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@DarMan](https://community.hubspot.com/u/DarMan)\
**Post date:** [August 2, 2023, 8:30am UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033/3 "2023-08-02T08:30:11Z")

</div>

How do I make an update like this using a unique value aside from the object ID? For example, if I enforce unique names for pets, how do I update a custom pet object using their name instead of the HubSpot ID?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 2, 2023, 6:21pm UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033/4 "2023-08-02T18:21:19Z")

</div>

Hey, @DarMan 👋 To clarify, you are asking about this part of the instructions of Updating a Custom Object record? — “or optionally any unique property value as specified by the `idProperty` query param”

Meaning, if I have a custom object property called `cat_mood` with unique values enforced? If so, I can get a quick example posted here.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![DarMan](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@DarMan](https://community.hubspot.com/u/DarMan)\
**Post date:** [August 3, 2023, 3:55am UTC](https://community.hubspot.com/t/update-records-created-in-custom-object/77033/5 "2023-08-03T03:55:37Z")

</div>

Yes. In this example, I might want to update all records of the `cat` object where `cat_mood` was `none` and use `n.a.` as the value instead. Another way would be to update `cat` records based on the name of the owner, which is a string.
