# How to back up your collections

You can back up your collections easily using the "copy\_collection" endpoint. As you back up your collection, you may also choose to rename the fields, remove the fields or change the collection schema. All these endpoints allows users to rename the required fields.

{% tabs %}
{% tab title="Python" %}

```python
import requests 
response = requests.post("https://vectorai-development-api.azurewebsites.net/project/copy_collection",
    json={
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "original_collection_name": "string",
        "collection_schema": { },
        "rename_fields": { },
        "remove_fields": [ ]
    })
response.json()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
let request = await fetch("https://vectorai-development-api.azurewebsites.net/project/copy_collection", {
      "method": "POST",
      "headers": {
            "Content-Type": "application/json"
      },
      "body": JSON.stringify({
        "username": "string",
        "api_key": "string",
        "collection_name": "string",
        "original_collection_name": "string",
        "collection_schema": { },
        "rename_fields": { },
        "remove_fields": [ ]
      })
})

let json = await request.json()
```

{% endtab %}
{% endtabs %}
