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

TNID API documentation Company Documents Move Company Folders

Move Company Folders

On this page

GraphQL endpoint: /company

Re-parents folders within the calling company's repository. Pass a null parentId to move them to the top level. A folder cannot be moved inside itself or its own descendants.

Query

mutation ($ids: [ID!]!, $parentId: ID) {
  moveCompanyFolders(ids: $ids, parentId: $parentId) {
    status
    count
  }
}

Variables

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

Response

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