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

TNID API documentation Company Documents Restore Company Documents

Restore Company Documents

On this page

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

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

Variables

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

Response

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