Last active
July 1, 2024 13:20
-
-
Save somewherewarm-snippets/1d4b084753f5306b92f3225cb6c5b71b 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-product-add-ons/v2/global-add-ons/123 \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "fields": [ | |
| { | |
| "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