> 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/007__update_company_document.md).

# Update Company Document

GraphQL endpoint: `/company`

Updates one of the calling company's documents — the display name and summary. The stored file itself is untouched.

## Query

```graphql
mutation ($id: ID!, $fileName: String, $summary: String) {
  updateCompanyDocument(id: $id, fileName: $fileName, summary: $summary) {
    id
    fileName
    summary
  }
}

```

## Variables

```json
{
  "fileName": "contract-v2.pdf",
  "id": "00000000-0000-4000-8000-000000000001",
  "summary": "Two-year TV warranty."
}
```

## Response

```json
{
  "data": {
    "updateCompanyDocument": {
      "fileName": "contract-v2.pdf",
      "id": "00000000-0000-4000-8000-000000000001",
      "summary": "Two-year TV warranty."
    }
  }
}
```
