Last active
July 1, 2024 13:20
-
-
Save somewherewarm-snippets/709b849af476438948f33b933eb1a6f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/v3/products/123 \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "addons": [ | |
| { | |
| "id": 1719406272 | |
| }, | |
| { | |
| "id": 1719406273 | |
| }, | |
| { | |
| "name": "Premium box with custom text", | |
| "type": "custom_text", | |
| "price_type": "quantity_based", | |
| "price": "20" | |
| } | |
| ] | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment