I am able to add options and variants creating a product:
POST
“options” => array(
“name” => “Color”,
“values” => array(
“Pink”,
“Red”,
),
“position” => 1,
),
“variants”=>array(
array(
“title”=> “Pink”,
“sku” => “A3POR44T”,
“option1”=> “Pinko”,
“inventory_quantity” => 11,
“price”=>20.00,
“taxable”=>false,
“inventory_management” => ‘shopify’
),
array(
“title”=> “Red”,
“sku” => “POR44T”,
“option1”=> “Redo”,
“inventory_quantity” => 14,
“price”=>23.00,
“taxable”=>false,
“inventory_management” => ‘shopify’
)
)
But if I PUT another option and variant to said product, instead it substitutes all the variants and option with the new one.
How do I update (add) instead?