# Can I create a Google Drive shortcut using rclone rc or via HTTP?

**URL:** <https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916>\
**Category:** Feature\
**Created:** [December 6, 2024, 2:13am UTC](https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916 "2024-12-06T02:13:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fidodone](https://forum.rclone.org/user_avatar/forum.rclone.org/fidodone/32/11637_2.png) [@fidodone](https://forum.rclone.org/u/fidodone)\
**Post date:** [December 6, 2024, 2:13am UTC](https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916/1 "2024-12-06T02:13:07Z")

</div>

I can create a shortcut normally using rclone:  
`rclone backend shortcut drive: source_item -o target=drive2: destination_shortcut`

but I'd like to know how to do this using rclone rcd with python, it could be with rclone rc via subprocess or even http

---

<div class="post-metadata">

**Author:** ![fidodone](https://forum.rclone.org/user_avatar/forum.rclone.org/fidodone/32/11637_2.png) [@fidodone](https://forum.rclone.org/u/fidodone)\
**Post date:** [December 6, 2024, 2:37am UTC](https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916/2 "2024-12-06T02:37:10Z")

</div>

after studying a bit more about the rclone api I managed to make it work

```auto
import json

import requests

backend_url = "http://localhost:5572/backend/command"
auth = ("username", "password")

data = {
    "command": "shortcut",
    "fs": "remotename:",
    "arg": ["source_file.foo", "destination_file.bar"],
}
headers = {"Content-Type": "application/json"}
response = requests.post(backend_url, auth=auth, data=json.dumps(data), headers=headers)
print(response.json())

```

Here's an example for anyone who needs this in the future

---

<div class="post-metadata">

**Author:** ![Terabox\_Modapk](https://forum.rclone.org/user_avatar/forum.rclone.org/terabox_modapk/32/19143_2.png) [@Terabox\_Modapk](https://forum.rclone.org/u/Terabox_Modapk)\
**Post date:** [January 12, 2025, 11:23am UTC](https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916/3 "2025-01-12T11:23:21Z")

</div>

Yes, you can create a Google Drive shortcut using `rclone rc` or via HTTP by utilizing the `rc` commands to interact with rclone's remote control API. Ensure you specify the correct parameters for the `operations/shortcut` function.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 13, 2025, 11:23am UTC](https://forum.rclone.org/t/can-i-create-a-google-drive-shortcut-using-rclone-rc-or-via-http/48916/4 "2025-03-13T11:23:51Z")

</div>

Closed on March 13, 2025, 11:23am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
