> 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/001_user/012_documents/016__move_user_folders.md).

# Move User Folders

GraphQL endpoint: `/user`

Re-parents folders within the calling user'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

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

```

## Variables

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

## Response

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