> 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 # Method name: updateUserFavoriteList(_id: string, favoriteList: UpdateUserFavoriteList, options: UpdateUserFavoriteListOptions) # Method package: wixDashboardManagementV2 # Method menu location: wixDashboardManagementV2 --> favoriteList --> updateUserFavoriteList # Method Link: https://dev.wix.com/docs/velo/apis/wix-dashboard-management-v2/favorite-list/update-user-favorite-list.md # Method Description: 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. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## updateUserFavoriteList example for dashboard page code ```javascript import { favoriteList } from 'wix-dashboard-management.v2'; async function updateUserFavoriteList(id, favoriteList, options) { try { const result = await favoriteList.updateUserFavoriteList(id, favoriteList, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## updateUserFavoriteList example for exporting from backend code ```javascript import { favoriteList } from 'wix-dashboard-management.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedUpdateUserFavoriteList = elevate(favoriteList.updateUserFavoriteList); export const updateUserFavoriteList = webMethod( Permissions.Anyone, async (id, favoriteList, options) => { try { const result = await elevatedUpdateUserFavoriteList(id, favoriteList, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---