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:
"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.
The documentation is incorrect, we will correct it.
Until then, two things:
1. The "type" parameter is required
2. The payload is application/x-www-form-urlencoded (not JSON)