Search...
updateBadgesDisplayOrder( )
Developer Preview
Updates badges' display order.
Description
This function is not a universal function and runs only on the backend
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function updateBadgesDisplayOrder(badgeIds: Array<string>): Promise<UpdateBadgesDisplayOrderResponse>
updateBadgesDisplayOrder Parameters
NAME
TYPE
DESCRIPTION
badgeIds
Array<
string
>Ordered badge IDs.
Returns
Return Type:
Promise<
UpdateBadgesDisplayOrderResponse
>NAME
TYPE
DESCRIPTION
badges
Array<
Badge
>Reordered badges list.
Was this helpful?
updateBadgesDisplayOrder example
Copy Code
1import { badges } from 'wix-members.v2';23 async function updateBadgesDisplayOrder(badgeIds) {4 try {5 const result = await badges.updateBadgesDisplayOrder(badgeIds);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13