# moveCreatorViewToGroup

Mutation

Move a saved Creator View into a view group, or out (when groupId is null).

Available to agents as MCP tool `moveCreatorViewToGroup` — see [Write tools](/api/v2/docs/mcp/write-tools#move-creator-view-to-group).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `groupId` | `ID` | No | — | Target ViewGroup UUID. Pass null to remove the view from any group it currently belongs to. |
| `viewId` | `ID!` | Yes | — | FilterPreset UUID of the Creator View to move. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `creatorView` | [`CreatorView`](/api/v2/docs/types/creator-view) | The moved Creator View, with the populated `group` field. Null when the view was not found or the move failed. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | List of user-facing errors. Empty on success. |

## Examples

### Move a creator view into a group

Move a saved Creator View into a view group (or out with a null groupId).

```graphql
mutation MoveCreatorViewToGroupDefault($viewId: ID!, $groupId: ID) {
  moveCreatorViewToGroup(viewId: $viewId, groupId: $groupId) {
    creatorView {
      id
      name
      group {
        id
        name
      }
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "viewId": "8d6ddb76-8b81-5725-a762-2d2e18432dcf",
  "groupId": "8e0f0ff1-8024-5af5-9506-49091f53a920"
}
```

Response — HTTP 200:

```json
{
  "data": {
    "moveCreatorViewToGroup": {
      "creatorView": {
        "id": "8d6ddb76-8b81-5725-a762-2d2e18432dcf",
        "name": "Northwind VIP Creators",
        "group": {
          "id": "8e0f0ff1-8024-5af5-9506-49091f53a920",
          "name": "Northwind Sidebar"
        }
      },
      "userErrors": []
    }
  }
}
```
