Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In


Cancels a running mailing (status: SENDING or PAUSED) in Optimizely Campaign.

The mailing must be of the type regular. All other mailings (event, confirmation, template) cannot be canceled.

Type: void


sessionIdStringID of the session
mailingIdlongID of the mailing

Return values

  • Code structure

    void cancel(String sessionId, long mailingId)

What’s Next