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.
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!
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 @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.
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.