Update shipping rules
GET http://{{queries_url}}/config/{{shop_id}}/shipping-rules/{{rule_id}}
This will update an existing shipping rule. Information in the database will be overwritten by every property that is sent to this method.
Important: all previously registered products will be removed on each update. If the shipping rule type is Product sending all previously registered products is recommended.
Request Body
{"name"=>"Express shipping for selected products (deactivated)", "country_code"=>"MX", "international"=>false, "type"=>"Product", "measurement"=>"ID", "min"=>nil, "max"=>nil, "option_1"=>2, "option_2"=>9, "option_3"=>22, "active"=>false, "products"=>[{"ecart_product_id"=>"40191406899366", "ecart_variant_id"=>"6806813933734"}, {"ecart_product_id"=>"39843538895014", "ecart_variant_id"=>"6703866282150"}]}