Created
April 28, 2020 14:02
-
-
Save somewherewarm-snippets/64ecc913da8479faf40e0c6e861cf407 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X PUT https://example.com/wp-json/wc/v2/products/133 \ | |
-u consumer_key:consumer_secret \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"composite_components": [ | |
{ | |
"title": "Your Free Poster", | |
"description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.", | |
"query_type": "product_ids", | |
"query_ids": [ 70 ], | |
"quantity_min": 1, | |
"quantity_max": 1, | |
"priced_individually": true, | |
"shipped_individually": true, | |
"optional": false, | |
"discount": "100.0", | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment