Updates badges' display order.
You can only call this method when authenticated as a Wix app or Wix user identity.
Ordered badge IDs.
Reordered badges list.
curl -X PATCH \
'https://www.wixapis.com/members/v3/badges/order' \
-H 'Authorization: <AUTH>' \
-d '{
"badgeIds":
[
"647519df-c6e8-462e-8f9d-a8f9f5939105",
"f2cefbf1-4180-40cb-9a9c-95cdafd82ab3"
]
}'
{
"badges": [
{
"id": "647519df-c6e8-462e-8f9d-a8f9f5939105",
"title": "Worker",
"description": "",
"backgroundColor": "#796EFF",
"textColor": "#FFFFFF",
"icon": "https://static.wixstatic.com/shapes/085c76e4c35843b3a72da08ad42cde7d.svg",
"permissionsEnabled": false,
"slug": "worker",
"createdDate": "2021-08-05T11:34:17.987Z",
"updatedDate": "2021-08-05T11:34:17.987Z"
},
{
"id": "f2cefbf1-4180-40cb-9a9c-95cdafd82ab3",
"title": "Player",
"description": "",
"backgroundColor": "#14AAF5",
"textColor": "#FFF9D1",
"icon": "https://static.wixstatic.com/shapes/658e7145548148ee9a621666fc8f4717.svg",
"permissionsEnabled": false,
"slug": "player",
"createdDate": "2021-08-05T11:32:36.616Z",
"updatedDate": "2021-08-05T11:32:36.616Z"
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.