Delete all attached products from a deal


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


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}


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

1 Like