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

setContent

Defines the content of an attachment in Optimizely Campaign.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
attachmentIdlongID of the attachment
contentbyte[ ]Content of the attachment (in binary form)

Return values

  • Code structure

    void setContent(String sessionId, long attachmentId, byte[] content)