# Move User Documents

GraphQL endpoint: `/user`

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

## Query

```graphql
mutation ($ids: [ID!]!, $folderId: ID) {
  moveUserDocuments(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": {
    "moveUserDocuments": {
      "count": 2,
      "status": "OK"
    }
  }
}
```
