How to add a combination (from set) as a variation using api?

in Development
API: eCom using PHP
In the documentation it is stated that we have to add the "option" parameter to add a product set I guess to create a combination
I tried this one but its not working.
Not sure how to do this but I think someone knows about this here. :)
I am thinking there's maybe a way to add only the id's of the option like what the lightspeed have in their backoffice
/products/<product_id>/variants/combination, this is not found since this is only used in backoffice
Is there a solution for this one?
1 comment
Hi,
You can update the product to attach a set to it:
https://developers.lightspeedhq.com/ecom/endpoints/product/#put-update-a-product