💻 How to back up your collectionsA guide on backing 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.
Python JavaScript
Copy 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 ()
Copy 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 ()