Created
April 28, 2020 14:53
-
-
Save somewherewarm-snippets/8dc28f26023d62fc68dab1e97cb7e3ca 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/v1/products/133 \ | |
-u consumer_key:consumer_secret \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"bundled_items": [ | |
{ | |
"product_id": 70, | |
"quantity_min": 1, | |
"quantity_max": 1, | |
"priced_individually": true, | |
"shipped_individually": true, | |
"discount": "50.0", | |
"optional": true, | |
"override_title": true, | |
"title": "Flying Ninja Poster" | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment