Updating a Discount with more than 700+ product id's

in Development
I would like to add a list of products to a discount. Unfortunately, after I pass more thann 500, 600 ID's, I get a bad gateway.
Is there a limit on how much products I can pass to the discount? If yes, is there a work around for that? I don't want to use the 'applyTo' attribute.
My request looks like this (I removed my credentials from this request) :
## Update Discount
curl -X "PUT" "https://api.webshopapp.com/de/discounts/699******.json" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"discount": {
"products": "1143******,1146******,1142******",
"isActive": true
}
}'
If i pass less than 500 product id's it works fine. But over 500 doesn't work.
1 comment
Hi @codeflow,
Thank you for reaching out to us.
In this case it's easier to put all those products in 1 category and then add the category to the discount code.