HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In


Defines the MIME type of an attachment in Optimizely Campaign.

Type: void


sessionIdStringID of the session
attachmentIdlongID of the attachment
mimeTypeStringCorresponding MIME type of the file

Example: image/gif or text/comma-separated-values

Return values

  • Code structure

    void setMimeType(String sessionId, long attachmentId, String mimeType)

What’s Next
Did this page help you?