HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

cancel

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

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing

Return values

  • Code structure

    void cancel(String sessionId, long mailingId)
    

What’s Next
Did this page help you?