Delete all attached products from a deal

#1

How would you delete all the attached products from a deal based on the deal ID?

#2

First, you can get the list of products attached to a deal with
GET /deals/{id}/products

Then if you want to only remove the attachment, you can use
DELETE /deals/{id}/products/{product_attachment_id}

If instead you actually want to delete the product, you can use
DELETE /products/{id}

#3

Thanks! Solved.
Didn’t figure that the id in the “list all products” is the product_attachment_id

1 Like