# 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."
    }
  }
}
```
