Created
June 18, 2016 10:46
-
-
Save bka/6018b488f488ef924b7b807872fa50b2 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
echo update_product("http://magento2.local/index.php/rest/V1/products/test"); | |
// following option CURLOPT_PUT breaks magento with | |
// {"message":"%fieldName is a required field.","parameters":{"fieldName":"product"}, | |
curl_setopt($ch, CURLOPT_PUT, 1 ); | |
// use CURLOPT_CUSTOMREQUEST instead | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment