HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

validateContent

Validates the content of a mailing in Optimizely Campaign.

The content will be checked for syntax errors, missing field functions etc.

Type: String

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
mimeTypeStringMIME type (text/plain or text/html) of the mailing
contentStringThe content of the mailing (HTML or text)

Return values

  • OK if the syntax is correct
  • WARNING: or ERROR: with a detailed error message

Code structure

String validateContent(String sessionId, long mailingId, String mimeType, String content)

Did this page help you?