💻How to remove a field in a collection

How to remove a field in a collection

We can change the schema of a collection using the /project/copy_collection endpoint and fill in the value for the remove_fields argument.

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",
        "remove_fields": ["field_to_remove"]
    })
response.json()

Last updated