Figured it out for me.
The problem:
– POST request to create a product returns 200 status code and a list of products instead of a new product.
The solution:
– according to this link it should be a server problem. So, adding &_method=POST
to the path solves a problem
https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API#server-does-not-support-postdeleteput
E.g.
https://example.org/wp-json/wc/v2/products?consumer_key=key&consumer_secret=secret&_method=POST