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).
{
idempotency_key: crypto.randomUUID(),
object: {
id: "3F7UQD7TFPYCKBCST46ZLEIN",
type: "ITEM",
item_data: {
name: "NEW NAME FROM CLI",
},
},
};
Error:
data: {
errors: [
{
category: 'INVALID_REQUEST_ERROR',
code: 'NOT_FOUND',
detail: 'Resource not found.'
}
]
}
Thank you!