Create product using curl
-
Hi!
I′m using curl to create and update products.
Everything works fine, except adding a product to a product category.Without the last line, the product will be created, but when I try to add it to a category it doesn′t work. I have tried many different ways, including copy/paste from the API, but i don′t succed.
Does anyone know how to do?curl -X POST https://mysite.com/wp-json/wc/v3/products
-u ck_:cs_
-d name=testartikel
-d regular_price=99.00
-d sku=A123
-d status=draft
-d categories=[{id=15}]Best regards!
Joey
- The topic ‘Create product using curl’ is closed to new replies.