With the Schedule API you can share the lineup of an event’s activities, presentations, performances, or sessions. Guests can make a personalized agenda with their chosen items by bookmarking them. The created schedule will appear on your Event Details page.
With the Schedule API you can:
To use the Schedule API, install the @wix/events
package using npm or Yarn:
or
Then import { schedule }
from @wix/events
:
Adds a schedule item to the draft schedule.
function addScheduleItem(
eventId: string,
options: AddScheduleItemOptions,
): Promise<AddScheduleItemResponse>;
Event ID to which the schedule belongs.
Optional fields.
import { schedule } from "@wix/events";
async function addScheduleItem(eventId, options) {
const response = await schedule.addScheduleItem(eventId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.