# moveUploadFolder

```graphql
mutation MoveUploadFolder($input: MoveUploadFolderInput!) {
  moveUploadFolder(input: $input) {
    sourcePath
    destinationPath
    foldersMoved
    uploadsMoved
  }
}
```

Move a folder, its child folder settings and its active uploads to a new unused path. Requires project.uploads.write.

## Arguments

| Name                     | Type                   | Required | Description                                                               |
| ------------------------ | ---------------------- | -------- | ------------------------------------------------------------------------- |
| `input`                  | MoveUploadFolderInput! | Yes      |                                                                           |
| `input.projectReference` | String!                | Yes      | Project UUID, slug or configured domain.                                  |
| `input.folderPath`       | String!                | Yes      | Folder to move; a trailing slash is appended when absent.                 |
| `input.destinationPath`  | String!                | Yes      | Unused destination folder path; a trailing slash is appended when absent. |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "folderPath": "string",
    "destinationPath": "string"
  }
}
```

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The UploadFolderMoveResult! in data.moveUploadFolder. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation MoveUploadFolder($input: MoveUploadFolderInput!) {\n  moveUploadFolder(input: $input) {\n    sourcePath\n    destinationPath\n    foldersMoved\n    uploadsMoved\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "folderPath": "string",
      "destinationPath": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "moveUploadFolder": {
      "sourcePath": "string",
      "destinationPath": "string",
      "foldersMoved": 0,
      "uploadsMoved": 0
    }
  }
}
```
