709 auto Invalid or unsupported param value for landing page content | Community
Skip to main content
New Participant
May 25, 2021
Question

709 auto Invalid or unsupported param value for landing page content

  • May 25, 2021
  • 1 reply
  • 2861 views

Hello everyone,

 

When I submit a REST POST request to a landing page content's endpoint which has the auto CSS property set for top, width, and height, the request fails with this error: Marketo API error (709): "auto Invalid or unsupported param value for landing page content". I verified that I'm setting the property auto as a string, and that the call works when replacing auto with numerical values.

 

/rest/asset/v1/landingPage/ID/content/CONTENTID.json

 

Is it not supported by the API? Is there a workaround?

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

1 reply

SanfordWhiteman
New Participant
May 25, 2021

Can you provide the actual payload you're sending, please?

New Participant
May 26, 2021

Here it is. Also I was wrong earlier, the POST request is to add content, not create.

 

POST /rest/asset/v1/landingPage/ID/content.json Content-Type: application/x-www-form-urlencoded type=Image&index=1&content=9896&formattingOptions%5Bheight%5D=auto&formattingOptions%5Bwidth%5D=auto&formattingOptions%5BzIndex%5D=15&formattingOptions%5Bleft%5D=15px&formattingOptions%5Btop%5D=222px&formattingOptions%5BimageOpenNewWindow%5D=1&value=9896&height=auto&width=auto&zIndex=15&left=15&top=222&imageOpenNewWindow=1
SanfordWhiteman
New Participant
May 27, 2021

Seems probable that it's using (incorrectly) HTML attribute validation for height & width, even though they're being set as CSS styles.

 

In HTML itself, height="auto" is not allowed; the value must be a nonnegative integer.