AnsweredAssumed Answered

Update Email Content API

Question asked by API Dev on May 15, 2018
Latest reply on May 21, 2018 by Sanford Whiteman

So I see in the http://developers.marketo.com/rest-api/assets/emails/#update_editable_section part where it is mentioned that the data is passed as x-www-form-urlencoded and not JSON. I tried to pass HTTP headers as:

 

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));


but I'm always getting the following error:

 

"success":false,"errors":[{"code":"611","message":"Content Type specified is not valid for the component"}

 

Anyone else got this same error while using this API endpoint? I've tried to add 'accept' in the header as well with value 'application/json', but I still get the same error. Any suggestions would help. Thanks

Outcomes