> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Move upload folder

> Move a folder, its child folder settings and its active uploads to a new unused path.

`moveUploadFolder(input: MoveUploadFolderInput!): UploadFolderMoveResult!`

Requires project.uploads.write.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`MoveUploadFolderInput!`](https://veryfront.com/docs/cloud/graphql/types/moveuploadfolderinput) | Yes |

## Input fields

### input

[`MoveUploadFolderInput`](https://veryfront.com/docs/cloud/graphql/types/moveuploadfolderinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Project UUID, slug or configured domain. |
| `folderPath` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Folder to move; a trailing slash is appended when absent. |
| `destinationPath` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Unused destination folder path; a trailing slash is appended when absent. |

## Response

Returns [`UploadFolderMoveResult!`](https://veryfront.com/docs/cloud/graphql/types/uploadfoldermoveresult). Open the type for its fields and nested types.

| Field | Type | Description |
| - | - | - |
| `sourcePath` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Folder path before the move, with a trailing slash. |
| `destinationPath` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Folder path after the move, with a trailing slash. |
| `foldersMoved` | [`Int!`](https://veryfront.com/docs/cloud/graphql/types/int) | Folder records moved, including the source folder. |
| `uploadsMoved` | [`Int!`](https://veryfront.com/docs/cloud/graphql/types/int) | Active uploads moved. |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
mutation MoveUploadFolder($input: MoveUploadFolderInput!) {
  moveUploadFolder(input: $input) {
    destinationPath
    foldersMoved
    sourcePath
    uploadsMoved
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "folderPath": "example",
    "destinationPath": "example"
  }
}
```

<details>
  <summary>Try this mutation</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Mutation

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.