Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

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)