Created
April 28, 2020 14:03
-
-
Save somewherewarm-snippets/54d21edf4a864817e3001349b98370bd 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": [ | |
{ | |
"id": "123456789", | |
"title": "Your Poster Offer", | |
"optional": true, | |
"discount": "50.0", | |
} | |
] | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment