Last active
March 3, 2025 09:14
-
-
Save somewherewarm-snippets/eb28e2755ecac93b1368a6021cf13e7e 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, | |
| "name": "Handmade Engraving", | |
| "price": "120", | |
| "max": 12 | |
| }, | |
| { | |
| "id": 1719406273, | |
| "options": [ | |
| { | |
| "label": "Silver", | |
| "price": "30", | |
| "price_type": "flat_fee", | |
| "visibility": true | |
| }, | |
| { | |
| "label": "Gold", | |
| "price": "45", | |
| "price_type": "flat_fee", | |
| "visibility": true | |
| }, | |
| { | |
| "label": "Platinum", | |
| "price": "50", | |
| "price_type": "flat_fee", | |
| "visibility": true | |
| } | |
| ] | |
| } | |
| ] | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment