> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

> **Deprecated.** This method is deprecated. Replacement: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/badges-v4/move-badge.md Planned removal date: 2026-07-01.

# UpdateBadgesDisplayOrder

# Package: activity

# Namespace: Badges

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/badges-v4/update-badges-display-order.md

## Permission Scopes:
Manage Badges: SCOPE.DC-MEMBERS.MANAGE-BADGES

## Introduction

Updates the display order of badges.

Provide an ordered array of badge IDs to set their display sequence.

This affects how badges appear to site members and in the site dashboard.

---

## REST API

### Schema

```
 Method: updateBadgesDisplayOrder
 Description: Updates the display order of badges.  Provide an ordered array of badge GUIDs to set their display sequence.  This affects how badges appear to site members and in the site dashboard.
 URL: https://www.wixapis.com/badges/v4/badges/order
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  ids
 Method parameters: 
   param name: ids | type: array<ids> | description: Ordered list of badge GUIDs. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: UpdateBadgesDisplayOrderResponse
  - name: badges | type: array<Badge> | description: Badges in their new display order.  
     - name: id | type: string | description: Badge GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the badge is updated. To prevent conflicting changes, the current revision must be passed when updating the badge.  | read-only: true | validation: format int64
     - name: title | type: string | description: Badge title displayed on the member's profile.  | validation: minLength 1, maxLength 50
     - name: description | type: string | description: Badge description explaining its purpose or criteria for earning it.  | validation: maxLength 1500
     - name: backgroundColor | type: string | description: Badge background color in hexadecimal RGB format.  | validation: format COLOR_HEX
     - name: textColor | type: string | description: Badge text color in hexadecimal RGB format.  | validation: format COLOR_HEX
     - name: icon | type: Image | description: Badge icon image.  Any image format is accepted with automatic conversion and resizing handled by the system. SVG format is recommended as it is resolution independent and looks great at any scale.  
        - name: id | type: string | description: [WixMedia](https://support.wix.com/en/article/wix-media-about-the-media-manager) image GUID. If you pass the GUID, you don't need to pass `url`.  
        - name: url | type: string | description: Image URL. Could be any image from the internet.  
        - name: height | type: integer | description: Original image height.  | read-only: true 
        - name: width | type: integer | description: Original image width.  | read-only: true 
        - name: altText | type: string | description: Image alt text.  
        - name: filename | type: string | description: Image filename. Only applicable when passing `id`.  | read-only: true 
     - name: permissionsEnabled | type: boolean | description: Whether the badge grants special permissions to access specific members-only pages.  When `true`, members with this badge receive special permissions. Site owners can configure these permissions in the site dashboard. For more information, see [Creating and Managing Member Badges](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges).  
     - name: slug | type: string | description: URL-friendly slug for the badge, automatically generated from the title.  Generated by converting the title to lowercase, replacing spaces with hyphens, and removing special characters.  | read-only: true | validation: minLength 1, maxLength 255
     - name: createdDate | type: string | description: Date and time the badge was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the badge was last updated.  | read-only: true | validation: format date-time


```

### Examples

### Update Badges Display Order
```curl
curl -X POST \
  'https://www.wixapis.com/badges/v4/badges/order' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "ids": [
      "a046df3c-7575-4098-a5ab-c91ad8f33c47",
      "9046df3c-7575-4098-a5ab-c91ad8f33c47", 
      "8046df3c-7575-4098-a5ab-c91ad8f33c47"
    ]
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.badgesV2.updateBadgesDisplayOrder(ids)
 Description: Updates the display order of badges.  Provide an ordered array of badge GUIDs to set their display sequence.  This affects how badges appear to site members and in the site dashboard.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  ids
 Method parameters: 
   param name: ids | type: array<string> | description: Ordered list of badge GUIDs. | required: true | validation: minItems 1, maxItems 100, format GUID
 Return type: PROMISE<UpdateBadgesDisplayOrderResponse>
  - name: badges | type: array<Badge> | description: Badges in their new display order.  
     - name: _id | type: string | description: Badge GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the badge is updated. To prevent conflicting changes, the current revision must be passed when updating the badge.  | read-only: true | validation: format int64
     - name: title | type: string | description: Badge title displayed on the member's profile.  | validation: minLength 1, maxLength 50
     - name: description | type: string | description: Badge description explaining its purpose or criteria for earning it.  | validation: maxLength 1500
     - name: backgroundColor | type: string | description: Badge background color in hexadecimal RGB format.  | validation: format COLOR_HEX
     - name: textColor | type: string | description: Badge text color in hexadecimal RGB format.  | validation: format COLOR_HEX
     - name: icon | type: string | description: Badge icon image.  Any image format is accepted with automatic conversion and resizing handled by the system. SVG format is recommended as it is resolution independent and looks great at any scale.  
     - name: permissionsEnabled | type: boolean | description: Whether the badge grants special permissions to access specific members-only pages.  When `true`, members with this badge receive special permissions. Site owners can configure these permissions in the site dashboard. For more information, see [Creating and Managing Member Badges](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges).  
     - name: slug | type: string | description: URL-friendly slug for the badge, automatically generated from the title.  Generated by converting the title to lowercase, replacing spaces with hyphens, and removing special characters.  | read-only: true | validation: minLength 1, maxLength 255
     - name: _createdDate | type: Date | description: Date and time the badge was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the badge was last updated.  | read-only: true 


```

### Examples

### updateBadgesDisplayOrder
```javascript
import { badgesV2 } from '@wix/members';

async function updateBadgesDisplayOrder(ids) {
  const response = await badgesV2.updateBadgesDisplayOrder(ids);
};
```

### updateBadgesDisplayOrder (with elevated permissions)
```javascript
import { badgesV2 } from '@wix/members';
import { auth } from '@wix/essentials';

async function myUpdateBadgesDisplayOrderMethod(ids) {
  const elevatedUpdateBadgesDisplayOrder = auth.elevate(badgesV2.updateBadgesDisplayOrder);
  const response = await elevatedUpdateBadgesDisplayOrder(ids);
}
```

### updateBadgesDisplayOrder (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { badgesV2 } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { badgesV2 },
  // Include the auth strategy and host as relevant
});


async function updateBadgesDisplayOrder(ids) {
  const response = await myWixClient.badgesV2.updateBadgesDisplayOrder(ids);
};
```

---