Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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)