> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/011_documents/008__move_company_documents.md).

# Move Company Documents

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

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

```

## Variables

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

## Response

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