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

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide
NuGetDev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

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)
    

Did this page help you?