REST API: landing page update fails with code 701
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.