# Move external file

```http
POST /projects/{project_reference}/external-files/{provider}/{file_id}/move
```

Move external file.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |
| `provider`          | path | Yes      |                                                            |
| `file_id`           | path | Yes      |                                                            |

## Request body

| Field       | Type   | Required | Description                                                                                                                                                                          |
| ----------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `folder_id` | string | Yes      | Destination folder item ID, or root. Destination folder. Provider name conflicts return conflict; Google Drive allows duplicate names. SharePoint moves remain within the same site. |
| `name`      | string |          | New name, 1-255 characters without / or control characters; the current name when omitted.                                                                                           |

## Responses

| Status | Description           |
| ------ | --------------------- |
| 200    | The moved item.       |
| 400    | Bad request           |
| 401    | Unauthorized          |
| 402    | Payment required      |
| 403    | Forbidden             |
| 404    | Not found             |
| 409    | Conflict              |
| 413    | Payload too large     |
| 428    | Precondition required |
| 429    | Rate limit exceeded   |
| 500    | Server error          |
| 503    | Service unavailable   |
