PATCH

Update Badges Display Order


Updates badges' display order.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Badges
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/members/v3/badges/order

Body Params
badgeIdsArray <string>Requiredformat GUIDminItems 1

Ordered badge IDs.

Response Object
badgesArray <Badge>

Reordered badges list.

Update badges display order
Request
cURL
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" ] }'
Response
JSON
{ "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" } ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?