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

TNID API documentation Company Documents Move Company Documents

Move Company Documents

On this page

GraphQL endpoint: /company

Moves documents into one of the calling company's folders. Pass a null folderId to move them back to the repository root.

Query

mutation ($ids: [ID!]!, $folderId: ID) {
  moveCompanyDocuments(ids: $ids, folderId: $folderId) {
    status
    count
  }
}

Variables

{
  "folderId": "00000000-0000-4000-8000-000000000003",
  "ids": [
    "00000000-0000-4000-8000-000000000001",
    "00000000-0000-4000-8000-000000000002"
  ]
}

Response

{
  "data": {
    "moveCompanyDocuments": {
      "count": 2,
      "status": "OK"
    }
  }
}