REST API Adding product with attributes
-
I have already created attributes and attribute terms with REST API
Now I try to add variable product so it could use this existing attributes for variations but I cannot manage to link this attributes to product. I’m using PUT for ‘/wc-api/v3/products/bulk’
"products": [ { "title": "Super Product", "sku": "552290", "type": "variable", "attributes":[ { "slug":"color", "position":0, "visible":true, "variation":true, "options":["red","black"] } ], "variations": [ { "sku": "552290-01", "regular_price": "700", "attributes": [ { "slug": "color", "option": "black" } ] }, { "sku": "552290-02", "regular_price": "950", "attributes": [ { "slug": "color", "option": "black" } ] } ] } ] }
- The topic ‘REST API Adding product with attributes’ is closed to new replies.