# hideItems

Mutation

Hide items from the workspace feed in the background; returns an operationId to poll with `operation(id:)`.

Available to agents as MCP tool `hideItems` — see [Write tools](/api/v2/docs/mcp/write-tools#hide-items).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `itemIds` | `[ID!]!` | Yes | — | Item ids to hide, as returned by `items`. At least 1 and at most 1000. An unknown id, an id from another workspace, or an already hidden item is skipped. Skipped ids are returned in `skippedItemIds`. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `acceptedCount` | `Int!` | Number of distinct items scheduled to be hidden. |
| `operationId` | `ID` | The background operation; poll it with `operation(id:)` and its per-item outcomes with `operationRecords`. Null when `scheduled` is false. |
| `scheduled` | `Boolean!` | True when an operation was scheduled. False when userErrors is non-empty or every id was skipped. |
| `skippedItemIds` | `[ID!]!` | Submitted item ids that do not resolve to a visible item in this workspace and were not scheduled. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | Errors that refused the whole request: an empty or oversized list, or no workspace user. Empty on success. |

## Examples

### Hide items

Schedule a background operation that hides two items from the workspace.

```graphql
mutation HideItemsDefault($itemIds: [ID!]!) {
  hideItems(itemIds: $itemIds) {
    scheduled
    operationId
    acceptedCount
    skippedItemIds
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "itemIds": [
    "452a119f-393e-5edf-a7f7-f563294f3885",
    "d8a538a5-8857-5c0c-b3fb-a2b83c8d2a0b"
  ]
}
```

Response — HTTP 200:

```json
{
  "data": {
    "hideItems": {
      "scheduled": true,
      "operationId": "90fb2a0c-2873-5750-8f39-e8e858066fa9",
      "acceptedCount": 2,
      "skippedItemIds": [],
      "userErrors": []
    }
  }
}
```
