> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/011_documents/010__restore_company_documents.md).

# Restore Company Documents

GraphQL endpoint: `/company`

Restores documents from the calling company's trash. A restored document returns to the repository root with its tags and summary intact.

## Query

```graphql
mutation ($ids: [ID!]!) {
  restoreCompanyDocuments(ids: $ids) {
    status
    count
  }
}

```

## Variables

```json
{
  "ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}
```

## Response

```json
{
  "data": {
    "restoreCompanyDocuments": {
      "count": 1,
      "status": "OK"
    }
  }
}
```
