API Variant option_values

It is now possible to set option_values when creating or updating a Variant.

One way is to add an array of option_values, like this :

POST /api/products/1/variants?variant[price]=10.50&variant[option_values][][option_value][id]=9&variant[option_values][][option_value][id]=4
Or you can set option_value_ids. (Variants controller will by default change option_values params to option_value_ids before creating a variant.)

POST /api/products/1/variants?variant[price]=10.50&variant[option_value_ids][]=9&variant[option_value_ids][]=4