Search...
rescheduleDraft( )
Adjusts the time of all draft schedule items at once per event.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function rescheduleDraft(eventId: string, options: RescheduleDraftOptions): Promise<void>
rescheduleDraft Parameters
NAME
TYPE
DESCRIPTION
eventId
string
Event ID to which the schedule belongs.
options
Optional
RescheduleDraftOptions
Optional fields.
Returns
Return Type:
Promise<
void
>Was this helpful?
rescheduleDraft example
Copy Code
1import { schedule } from 'wix-events.v2';23 async function rescheduleDraft(eventId, options) {4 try {5 const result = await schedule.rescheduleDraft(eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13