I was reading through this thread: visit.developer.squareup.com/forums/t/cannot-upsert-update-catalogobjects-of-type-item/20517, and it made me curious about a related issue I’ve been facing.
When trying to update a CatalogObject of type ITEM, I keep running into the NOT_FOUND error, even though the RetrieveCatalogObject endpoint successfully returns the correct object with all its details. I’ve tried using the same ID, passing the version retrieved from the object, and even incrementing it slightly as suggested elsewhere, but the update still fails.
Here’s the tricky part, I’m wondering if there’s something about how linked CatalogObjects (like variations or modifiers) are handled during an update that could cause this error. Is it necessary to include linked objects in the request, even when they’re not being updated Or is there a specific condition that prevents certain ITEM types from being updated through the UpsertCatalogObject API??
Any detailed insights or advanced troubleshooting steps would be great! Here’s my current request body for context:
{
idempotency_key: crypto.randomUUID(),
object: {
id: "EXAMPLE_ITEM_ID",
type: "ITEM",
item_data: {
name: "Updated Item Name",
},
},
};
1 post - 1 participant