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

# Update File Location

Update a file's location, by adding or removing its `parents`. Note, each file can have only one parent.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Google Drive documentation](https://developers.google.com/drive/api/reference/rest/v3/files/update).

## Basic Parameters

| Parameter | Description |
| - | - |
| Add Parents | A folder's ID to add the file into. Insert a single ID. |
| File ID | The ID of the file to update its location. |
| Remove Parents | A folder's ID to remove the file from. Insert a single ID. |
| Supports All Drives | Whether the requesting application supports both My Drives and shared drives. |

## Advanced Parameters

| Parameter | Description |
| - | - |
| Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection. If not specified, the delegated user is the one provided in the connection. Has no effect when using an OAuth connection. NOTE: the connection details are not edited by this input. |

## Example Output

```json theme={"dark"}
{
	"kind": "drive#file",
	"id": "2XL2zxUymAaSI9J-NNhbMqnlca5KnrbHd",
	"name": "File name",
	"mimeType": "text/plain"
}
```

## Workflow Library Example

[Update File Location with Google Drive and Send Results Via Email](https://library.blinkops.com/workflows/update-file-location-with-google-drive-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/update-file-location-with-google-drive-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/update-file-location-with-google-drive-and-send-results-via-email/canvas)


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