Not able to update image in LP through REST | Community
Skip to main content
Avtar_Singh1
Level 2
July 25, 2019
Question

Not able to update image in LP through REST

  • July 25, 2019
  • 0 replies
  • 1021 views

Hi there,

I am trying to update an image in a landing page through REST API. My post request is successfully running but the image is not updating after approving the LP. Noticed Marketo is prepending the id element value with "mkto_gen_". Tried giving "mkto_gen_header-logo-image.json" but it is also not working as the value is prepending at runtime. Please refer the HTML defined below

REST Endpoint-

/rest/asset/v1/landingPage/22781/content/header-logo-image.json?access_token=xxxxxxxxx

In LP template HTML is given as below

<div class="mktoImg" id="header-logo-image">

   <img src=".../images/10-yrs-experience-icon.png" alt="logo" class="lpimg">

</div>

But at runtime LP is generating below HTML

<div class="mktoImg mktoGen" id="mkto_gen_header-logo-image">

   <img src=".../images/10-yrs-experience-icon.png" alt="logo" class="lpimg" id="header-logo-image">

</div>

Could anyone please suggest any solution?

Thanks,

Avtar Singh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.