Updates the current Wix user's list of favorite dashboard pages.
Make sure to include the current revision number when calling this method.
Note: Updating the list replaces the favorite pages it contains with those specified in the method.
function updateUserFavoriteList(
_id: string,
favoriteList: UpdateUserFavoriteList,
): Promise<DashboardFavoriteList>;
Dashboard favorite list ID. Automatically generated by Wix.
import { favoriteList } from "@wix/dashboard-management";
async function updateUserFavoriteList(id, favoriteList) {
const response = await favoriteList.updateUserFavoriteList(id, favoriteList);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.