# restoreItems

Mutation

Restore hidden items to the workspace feed. Items of a blocked social profile are skipped.

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

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `itemIds` | `[ID!]!` | Yes | — | Ids of hidden items to restore. At least 1 and at most 1000. An id that is not a hidden item of this workspace is skipped. Skipped ids are returned in `skippedItemIds`. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `restoredItemIds` | `[ID!]!` | Distinct item ids that were hidden and are now restored. |
| `skippedItemIds` | `[ID!]!` | Submitted item ids that do not resolve to a hidden item in this workspace and were not changed. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | Errors that refused the whole request, restoring nothing: an empty or oversized list, or an item that left the workspace or whose creator is blocked meanwhile. Empty on success. |

## Examples

### Restore items

Restore hidden items; an id that is not hidden comes back in skippedItemIds.

```graphql
mutation RestoreItemsDefault($itemIds: [ID!]!) {
  restoreItems(itemIds: $itemIds) {
    restoredItemIds
    skippedItemIds
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "itemIds": [
    "452a119f-393e-5edf-a7f7-f563294f3885"
  ]
}
```

Response — HTTP 200:

```json
{
  "data": {
    "restoreItems": {
      "restoredItemIds": [],
      "skippedItemIds": [
        "452a119f-393e-5edf-a7f7-f563294f3885"
      ],
      "userErrors": []
    }
  }
}
```
