Search.../

createBookmark( )

Bookmarks a schedule item for a currently logged-in member.

Syntax

function createBookmark(itemId: string, eventId: string): Promise<void>

createBookmark Parameters

NAME
TYPE
DESCRIPTION
itemId
string

Schedule item ID.

eventId
string

Event ID to which the schedule belongs.

Returns

Return Type:

Promise<
void
>

Was this helpful?

createBookmark example

Copy Code
1import { scheduleBookmarks } from 'wix-events.v2';
2
3 async function createBookmark(itemId, eventId) {
4 try {
5 const result = await scheduleBookmarks.createBookmark(itemId, eventId);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13