I think I got the problem:
Working call
‘post_id=1673&product_type=variable&data=attribute_names%255B0%255D%3Dpa_color%26attribute_position%255B0%255D%3D1%26attribute_values%255B0%255D%255B%255D%3D229%26attribute_values%255B0%255D%255B%255D%3D231%26attribute_values%255B0%255D%255B%255D%3D232%26attribute_values%255B0%255D%255B%255D%3D230%26attribute_variation%255B0%255D%3D1&action=woocommerce_save_attributes&security=9bf515fb8e’
Not working call:
‘post_id=1673&product_type=variable&data=attribute_names%255B0%255D%3Dpa_color%26attribute_position%255B0%255D%3D1%26attribute_values%255B0%255D%255B%255D%3Dwhite%26attribute_values%255B0%255D%255B%255D%3Dred%26attribute_values%255B0%255D%255B%255D%3Dpistachio%26attribute_values%255B0%255D%255B%255D%3Dorange%26attribute_variation%255B0%255D%3D1&action=woocommerce_save_attributes&security=9bf515fb8e’
You’re passing the attribute slug as attribute value and you should pass the attribute ID instead.
231 vs white ??
Testing fix in the JS…