publishCampaign( )


Publishes and sends a specified campaign.

If the email_distribution_options object isn't passed in the request, the campaign is only published as a landing page.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Access Verticals by Automations
Set Up Automations
Manage Email Marketing
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
campaignIdstringRequired

Campaign ID


optionsPublishCampaignOptions

Options to use when publishing a campaign.

Returns
Return Type:Promise<PublishCampaignResponse>
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?