TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation Company Documents Update Company Document

Update Company Document

On this page

GraphQL endpoint: /company

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

Query

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

Variables

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

Response

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