Hello, I'm trying to update via REST API the content of emails and landing pages but I'm getting strange errors when I'm trying to do it. For Email content I have this section: { "htmlId" : "Banner2" , "value" : { "value" : "https://dummyimage.com/640x240/ccc/000" , "width" : "640" , "al Text" : "banner" } , "contentType" : "Image" , "parentHtmlId" : "Banner" , "isLocked" : false } I'm trying to update the link in this section but of course I get the response that the "type" is needed. In Marketo documentation it says that the "type" can only have 3 options: "Text", "DynamicContent" and "Snippet". I've tried to use the "Text" type like this: https : / / xxx - OTA - xxx . mktorest . com / rest / asset / v1 / email / 1964 / content / Banner2 . json ? access_token = xxx & type = Text & value = { "value" : "https://dummyimage.com/600x450/000/fff" , "width" : "640" , "altText" : "banner" } But I'm getting this error: "code" : "611" , "message" : "Content Type specified is not valid for the component" I'm using "application/x-www-form-urlencoded" as Content type on the request. On a Landing page I'm trying to update the link as well in this section: { "id" : "13676" , "type" : "Image" , "index" : 1 , "content" : { "content" : "12577" , "contentType" : "File" , "contentUrl" : "https://app-lon02.marketo.com/rs/275-OTA-175/images/0.png" } , "formattingOptions" : { "height" : "200px" , "width" : "200px" , "zIndex" : 15 , "left" : "541px" , "top" : "172px" , "imageOpenNewWindow" : true } } I'm doing this request: https://xxx-OTA-xxx.mktorest.com/rest/asset/v1/landingPage/2158/content/13676.json?access_token=xxx&type=Image&value={"id":"13676","type":"Image","index":1,"content":{"content":"12577","contentType":"File","contentUrl":"https://dummyimage.com/600x450/000/fff"},"formattingOptions":{"height":"200px","width":"200px","zIndex":15,"left":"541px","top":"172px","imageOpenNewWindow":true}} And I'm getting this response when the LP is on draft mode: { "code": "709", "message": "Operation is only allowed on draft landing page content" } Am I doing the request wrong? meaning the parameters are not set properly in the request? So yes, I'm trying to update links on assets content but the lack of examples on Marketo documentation is not helping. Could anyone with experience on updating assets via REST API could please help? Thank you, Mihai
... View more