Render unsaved CMS message content

Prev Next
Put
/cmsMessages/renderContent

Required: content. Nothing is saved.

Body parameters

The content to render.

object
content
string
encoding
string
Responses
200

The rendered content.

Example response:

{
  "content": "<p>Hello</p>",
  "encoding": "UTF-8"
}
object
content
string
encoding
string
400

Error. All errors are returned as HTTP 400; errorCode in the body says what went wrong: INVALID_PARAMETER or MISSING_PARAMETER (a parameter is missing or invalid), NO_SUCH_OBJECT (no object with this ID in your account), PERMISSION_DENIED (your user lacks the CMS permission for this action), UNEXPECTED_ERROR (backend error). Example: {"errorActor": "CLIENT", "errorCode": "NO_SUCH_OBJECT", "message": "...", "objectType": null, "propertyName": null, "propertyValue": null}