HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

create

Creates an attachment in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the session
NameStringInternal name of the attachment to be added
mimeTypeStringCorresponding MIME type of the file

Example: image/gif or text/comma-separated-values.
filenameStringFile name to be used for the attachment
contentbyte[ ]Content of the attachment (in binary form)

Return values

ID of the created attachment

Code structure

long create(String sessionId, String name, String mimeType, String filename, byte[] content)

What’s Next
Did this page help you?