In the request payload, include the updated price value in the "regular_price" field or "price" field, depending on your WooCommerce setup.
Note: Make sure to include the necessary authentication headers (e.g., "Authorization") in your API requests to authenticate with the WooCommerce API.
1条答案
按热度按时间wh6knrhe1#
GET /wp-json/wc/v3/products
字符串
PUT /wp-json/wc/v3/products/{product_id}
型