-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting products through REST API fails #1829
Comments
|
Hey, I'm running the DELETE products api on the Catalog module. /api/catalog/products Platform version is 2.13.50, all modules are up-to-date. The exception above is now gone, apparently it was related to having an empty ID textbox in Swaggers "try it out" feature. There is a new issue now, SKUs are not being deleted, no exception, API returns 204 No Content. Request is |
lets try to delete via swagger |
This is really unfortunate/bad. Everything we do is by SKUs. We never actually touch the IDs if not absolutely necessary. |
Recently we added endpoint to delete entries by the search criteria - POST "api/catalog/listentries/delete": It has Code in the search criteria + probably using Terms you can find multiple products by SKUs. Caution: Be careful when deleting products by the search results. E.g. products have their variations in the "code" property in index. So search results may be wider than just one item with this SKU. I would advise deleting based on the |
What if we just delete the records from the database, that would work but what about side effects? |
I'm trying to remove some products through the REST API but I'm running into issue/exception. I actually only tried with one product SKU but I would like to add multiple later and perform batch delete.
Is this something on my end or is it an issue with VC platform? I'm running pretty novel version of VC platform (think it was updated in Feb or Mar).
The text was updated successfully, but these errors were encountered: