Created
September 13, 2016 06:39
-
-
Save yvoronoy/5b145b1aec5f8729c5a24d094a0b8c9c to your computer and use it in GitHub Desktop.
Magento2 Rest Link Configurable Products
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 POST "http://<BASE_URL>/index.php/rest/V1/integration/admin/token" \ | |
-H "Content-Type:application/json" \ | |
-d '{"username":"admin", "password":"123123q"}' | |
curl -X POST "http://<BASE_URL>/index.php/rest/V1/configurable-products/<PARENT_SKU>/child" \ | |
-H "Content-Type:application/json" \ | |
-H "Authorization: Bearer <TOKEN>" \ | |
-d '{"childSku": "BlackSimpleProduct"}' | |
curl -X DELETE "http://<BASE_URL>/index.php/rest/V1/configurable-products/<PARENT_SKU>/children/<CHILD_SKU>" \ | |
-H "Content-Type:application/json" \ | |
-H "Authorization: Bearer <TOKEN>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment