> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Reschedule # Package: emailMarketing # Namespace: CampaignService # Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-marketing/campaign/reschedule.md ## Permission Scopes: Manage Email Marketing: SCOPE.DC-PROMOTE.EMAIL-MARKETING ## Introduction Changes the sending time for an already scheduled campaign. --- ## REST API ### Schema ``` Method: reschedule Description: Changes the sending time for an already scheduled campaign. URL: https://www.wixapis.com/email-marketing/v1/campaigns/{campaignId}/reschedule Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: sendAt Method parameters: param name: sendAt | type: sendAt | description: New time for sending out the campaign. | required: true Return type: RescheduleResponse EMPTY-OBJECT {} ``` ### Examples ### Reschedule Campaign ```curl curl -X POST 'https://www.wixapis.com/email-marketing/v1/campaigns/d699798f-dc07-4668-89f9-6db2e8ab52a3/reschedule' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' -d '{ "sendAt": "2024-08-14T14:43:00Z" }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.emailMarketing.CampaignService.reschedule(campaignId, sendAt) Description: Changes the sending time for an already scheduled campaign. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: campaignId, sendAt Method parameters: param name: campaignId | type: string | description: GUID of the campaign to reschedule. | required: true param name: sendAt | type: string | description: New time for sending out the campaign. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### reschedule ```javascript import { campaigns } from '@wix/email-marketing'; async function reschedule(campaignId,sendAt) { const response = await campaigns.reschedule(campaignId,sendAt); }; ``` ### reschedule (with elevated permissions) ```javascript import { campaigns } from '@wix/email-marketing'; import { auth } from '@wix/essentials'; async function myRescheduleMethod(campaignId,sendAt) { const elevatedReschedule = auth.elevate(campaigns.reschedule); const response = await elevatedReschedule(campaignId,sendAt); } ``` ### reschedule (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { campaigns } from '@wix/email-marketing'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { campaigns }, // Include the auth strategy and host as relevant }); async function reschedule(campaignId,sendAt) { const response = await myWixClient.campaigns.reschedule(campaignId,sendAt); }; ``` ---