AnsweredAssumed Answered

REST API: landing page update fails with code 701

Question asked by bc0b3c14061e9eabebbbd78ed81d8b5437eb1139 on Nov 8, 2017
Latest reply on Jan 30, 2019 by David Everly

I'm trying to update a landing page using the REST API.

The docs state that all fields in the request body are optional. Yet, I am getting back the following error: code=701, message=type cannot be null.

I've tried setting type explicitly to both HTML and RichText, but the error persists.

My JSON payload looks like this:

{

  "type": "HTML",

  "value": "[A properly escaped chunk of HTML copied from the response to a GET request for the same asset]"

}

 

The URL is constructed correctly, as far I can see. I set Content-Type to application/json. Not sure what else I could do to make it happy.

Outcomes