# moveSocialProfileViewToGroup

Mutation

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

Available to agents as MCP tool `moveSocialProfileViewToGroup` — see [Write tools](/api/v2/docs/mcp/write-tools#move-social-profile-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 Social Profile View to move. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `socialProfileView` | [`SocialProfileView`](/api/v2/docs/types/social-profile-view) | The moved Social Profile 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 social profile view into a group

Move a saved Social Profile view into a view group (or out with a null groupId).

```graphql
mutation MoveSocialProfileViewToGroupDefault($viewId: ID!, $groupId: ID) {
  moveSocialProfileViewToGroup(viewId: $viewId, groupId: $groupId) {
    socialProfileView {
      id
      name
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "viewId": "6f36548f-6fec-5322-96e7-8ae179b96c04",
  "groupId": "8e0f0ff1-8024-5af5-9506-49091f53a920"
}
```

Response — HTTP 200:

```json
{
  "data": {
    "moveSocialProfileViewToGroup": {
      "socialProfileView": {
        "id": "6f36548f-6fec-5322-96e7-8ae179b96c04",
        "name": "Northwind Creators Directory"
      },
      "userErrors": []
    }
  }
}
```
