# Cannot Upsert (update) CatalogObjects of type "ITEM"

**URL:** <https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517>\
**Category:** Questions\
**Created:** [January 7, 2025, 5:10am UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517 "2025-01-07T05:10:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickerplane](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@wickerplane](https://developer.squareup.com/forums/u/wickerplane)\
**Post date:** [January 7, 2025, 5:10am UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517/1 "2025-01-07T05:10:56Z")

</div>

I’m trying to update my CatalogObject of type ITEM, but I get an error every time I try to upsert (update) an existing CatalogObject.

Any help would be greatly appreciated! Have been stuck on this for a while, can’t get a more informative error message

When I use the RetrieveCatalog endpoint, I am getting the ITEM back no problem.

I’ve tried passing back the version from RetrieveCatalogObject endpoint to Upsert Catalog Object as one of the fields, incrementing it by 1, incrementing it by a lot, no dice.

I’ve also tried passing back the entire CatalogObject retrieved with only the name change, still doesn’t work.

My requestBody looks like this (just trying to edit the name for simplicity).

```auto
{
    idempotency_key: crypto.randomUUID(),
    object: {
      id: "3F7UQD7TFPYCKBCST46ZLEIN",
      type: "ITEM",
      item_data: {
        name: "NEW NAME FROM CLI",
      },
    },
  };

```

Error:

```auto
   data: {
      errors: [
        {
          category: 'INVALID_REQUEST_ERROR',
          code: 'NOT_FOUND',
          detail: 'Resource not found.'
        }
      ]
    }

```

Thank you!

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [January 7, 2025, 5:11am UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517/2 "2025-01-07T05:11:18Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Update Catalog Objects](https://developer.squareup.com/docs/catalog-api/update-catalog-objects)**
>
> The UpsertCatalogObject endpoint updates one item at a time, whereas the BatchUpsertCatalogObjects endpoint can update multiple objects at the same time.

> **[Delete Catalog Objects and Query Deleted Objects](https://developer.squareup.com/docs/catalog-api/delete-catalog-objects)**
>
> Learn how to delete a catalog object and how to retrieve it for auditing.

> **Additional Documentation**
>
> [Retrieve Catalog Objects](https://developer.squareup.com/docs/catalog-api/retrieve-catalog-objects)  
> [Catalog API](https://developer.squareup.com/docs/catalog-api/what-it-does)  
> [Work with Images](https://developer.squareup.com/docs/catalog-api/cookbook/create-catalog-image)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [January 7, 2025, 6:19pm UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517/3 "2025-01-07T18:19:23Z")

</div>

When updating a catalog object you have to pass in every field of the catalog object otherwise it will be removed from the catalog object. 🙂

---

<div class="post-metadata">

**Author:** ![wickerplane](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@wickerplane](https://developer.squareup.com/forums/u/wickerplane)\
**Post date:** [January 8, 2025, 9:01am UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517/4 "2025-01-08T09:01:51Z")

</div>

I’ve done this a few times (just edited the one field), no dice unfortunately.

Do I need to do something to the version #?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [January 8, 2025, 6:26pm UTC](https://developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517/5 "2025-01-08T18:26:18Z")

</div>

What’s your application ID and are you able to call `RetrieveCatalogObject` with `3F7UQD7TFPYCKBCST46ZLEIN`? 🙂
