# Symlinks/Shortcuts

Managing symbolic links can be done through the admin interface or via the API.&#x20;

## Get all symbolic links in the organisation

<mark style="color:blue;">`GET`</mark> `https://api.couchdrop.io/manage/symlinks`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    result: [
        {"source": "/link", "destination":"/dropbox/folder1", "id":"id1"},
        {"source": "/link2", "destination":"/dropbox/folder2", "id":"id2"}
    ]
}
```

{% endtab %}
{% endtabs %}

## Create a new symbolic link

<mark style="color:orange;">`PUT`</mark> `https://api.couchdrop.io/manage/symlinks`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "result":{
        "id": "id1"
    }
}
```

{% endtab %}
{% endtabs %}

## Modify an existing symbolic link

<mark style="color:green;">`POST`</mark> `https://api.couchdrop.io/manage/symlinks`

#### Request Body

| Name                                          | Type   | Description                                                                                  |
| --------------------------------------------- | ------ | -------------------------------------------------------------------------------------------- |
| id<mark style="color:red;">\*</mark>          | String | ID of the symbolic link you are modifying                                                    |
| source<mark style="color:red;">\*</mark>      | String | The source path for the link. This is the path where the link will appear in the filesystem. |
| destination<mark style="color:red;">\*</mark> | String | The destination path. Where the link points to in the real filesystem                        |

## Delete an existing link

<mark style="color:red;">`DELETE`</mark> `https://api.couchdrop.io/manage/symlinks/<link_id>`

#### Path Parameters

| Name     | Type   | Description                             |
| -------- | ------ | --------------------------------------- |
| link\_id | String | The ID of the object you want to delete |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.couchdrop.io/administration/symlinks-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
