Product_Update - Update and delete images and cases

We need a way to maintain images and cases and probably also other array based values.

Right now we’re unable to remove existing images and cases via GraphQL. Once whey are added, we can’t delete them again via GraphQL. I think it should be possible to set images and cases to null, and that would remove all existing items.

Please give us a solution.

Hello @Webtimisten! Thanks for sharing your feedback with us. I will make sure it gets to the right years. If I understand correctly you are talking not only about deleting them but also about completely wiping them, correct?
Have a great day!

1 Like

Yes, we neither have a way to delete or wipe images and cases, so right now we need to do that manually - which isn’t optimal.

Can we please get an update on this issue? How do we delete images and cases via API?

1 Like

@Webtimisten We still haven’t added this to the current roadmap. I’ll let you know if and when we do.

Have a nice day!

Hello! I was wondering if there has been an update on this. We would also like to be able to delete cases via the API, and I can’t seem to find a way to do it at the moment.

Hi everyone! :waving_hand: Wanted to drop by with some good news on this one.

You can now delete product images through the API. We’ve added a product_delete_image mutation just for that.

Here’s the documentation if you want to check it out: product_delete_image - GraphQL API.

Best regards.
Luciano.

Hello @lpezza ! Is there any word if the ability to delete cases via the API is coming up soon?

Hi @jeremyw! Just to make sure I answer the right thing: do you mean Product Case Barcodes (the cases: [{ case_barcode, case_quantity }] field in product_create / product_update), or Product Cases / UOM ?

I mean the first one, the case_barcode, case_quantity that can be set via the product_create and product_update mutations. We had a scenario recently where we needed to remove a hundreds of obsolete case barcodes from products, but there wasn’t a way to do it with product_update. The only way to do it was one-by-one via the UI, which was a tedious and painful experience.

@jeremyw thanks for confirming.

Unfortunately, deleting case barcodes isn’t something we support through the public API today. As you found, the UI is currently the only way to remove them.

I’ve passed this along internally as feedback and will update the thread if that changes.

Best, Luciano

1 Like