> ## 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 external file

> Move external file.

`moveExternalFile(input: ExternalStorageMoveInput!): ExternalStorageFile!`

Requires project.integrations.connect.

## Arguments

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

## Input fields

### input

[`ExternalStorageMoveInput`](https://veryfront.com/docs/cloud/graphql/types/externalstoragemoveinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `provider` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Storage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused. |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection. |
| `fileId` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | |
| `folderId` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Destination folder. Provider name conflicts return conflict; Google Drive allows duplicate names. SharePoint moves remain within the same site. Use a folder item ID or root. Required unless newParentId is supplied. |
| `name` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | New name, 1-255 characters without / or control characters. |
| `newParentId` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `newName` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Legacy new name. Empty keeps the current name; control characters are not allowed. |

## Response

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

| Field | Type | Description |
| - | - | - |
| `id` | [`ID!`](https://veryfront.com/docs/cloud/graphql/types/id) | |
| `provider` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Provider that stores the item: onedrive, sharepoint or drive. |
| `name` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `path` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `mimeType` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `sizeBytes` | [`Float!`](https://veryfront.com/docs/cloud/graphql/types/float) | |
| `kind` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | |
| `parentId` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | Provider ID of the parent folder, or null. |

[All fields of `ExternalStorageFile`](https://veryfront.com/docs/cloud/graphql/types/externalstoragefile).

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 MoveExternalFile($input: ExternalStorageMoveInput!) {
  moveExternalFile(input: $input) {
    id
    name
    etag
    kind
    mimeType
  }
}
```

```json title="variables.json" theme={null}
{
  "input": {
    "provider": "drive",
    "projectReference": "example-project",
    "fileId": "00000000-0000-4000-8000-000000000001"
  }
}
```

<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.