# reorderDefaultViewList

Mutation

Set the order of the default list of one view kind (Content, Social Profile or Creator Views). The list holds every view of the kind, grouped or not. Views omitted from `viewIds` keep their position.

Available to agents as MCP tool `reorderDefaultViewList` — see [Write tools](/api/v2/docs/mcp/write-tools#reorder-default-view-list).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `kind` | [`DefaultViewListKind!`](/api/v2/docs/types/default-view-list-kind) | Yes | — | The view kind whose default list is reordered. |
| `viewIds` | `[ID!]!` | Yes | — | View ids of that kind in the desired order, each at most once. An empty list changes nothing and returns the list. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `contentViews` | [`[ContentView!]`](/api/v2/docs/types/content-view) | Visible Content Views in sidebar order when `kind` is CONTENT_VIEW; null otherwise or on error. Returns at most 1000 rows; this field is not paginated. |
| `creatorViews` | [`[CreatorView!]`](/api/v2/docs/types/creator-view) | Visible Creator Views in sidebar order when `kind` is CREATOR_VIEW; null otherwise or on error. Returns at most 1000 rows; this field is not paginated. |
| `socialProfileViews` | [`[SocialProfileView!]`](/api/v2/docs/types/social-profile-view) | Visible Social Profile Views in sidebar order when `kind` is SOCIAL_PROFILE_VIEW; null otherwise or on error. Returns at most 1000 rows; this field is not paginated. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | List of user-facing errors. Empty on success. |

## Examples

### Reorder the default view list

Set the sidebar order of the workspace's Content Views.

```graphql
mutation ReorderDefaultViewListDefault($kind: DefaultViewListKind!, $viewIds: [ID!]!) {
  reorderDefaultViewList(kind: $kind, viewIds: $viewIds) {
    contentViews {
      id
      name
      position
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "kind": "CONTENT_VIEW",
  "viewIds": [
    "148529d3-8e44-5bec-b39e-3127ba52cfef",
    "eaa824b8-374f-5db8-bee2-51dfd8c3776c"
  ]
}
```

Response — HTTP 200:

```json
{
  "data": {
    "reorderDefaultViewList": {
      "contentViews": [
        {
          "id": "148529d3-8e44-5bec-b39e-3127ba52cfef",
          "name": "Legacy Reels Preset",
          "position": 0
        },
        {
          "id": "eaa824b8-374f-5db8-bee2-51dfd8c3776c",
          "name": "All Northwind Content",
          "position": 1
        }
      ],
      "userErrors": []
    }
  }
}
```
