Link variants to a product.
1 min
POST
https://api.upstartcommerce.com/pim/products/{id}/link-variants
acceptstringGenerated from available response content types
bodyobject
200All requested variants were successfully linked to the product.
207<p>Partial success. Some variants were linked while others failed (for example a variant that is already associated to the product). The response body reports the per-variant status.</p>
curl --request POST \
--url https://api.upstartcommerce.com/pim/products/{id}/link-variants \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"variantIds": []
}'