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.
Is it not supported by the API? Is there a workaround?
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
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.
Thank you, that makes sense. Would the Marketo team be able to resolve this, or should I just avoid using "auto" ?