API Reference
Update vector store file attributes
POST
/
v1
/
vector_stores
/
{vector_store_id}
/
files
/
{file_id}
Update vector store file attributes
curl --request POST \
--url https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files/{file_id} \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {}
}
'import requests
url = "https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files/{file_id}"
payload = { "attributes": {} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"object": "vector_store.file",
"vector_store_id": "<string>",
"status": "in_progress",
"created_at": 123,
"usage_bytes": 123,
"attributes": {},
"chunking_strategy": {},
"last_error": {
"code": "<string>",
"message": "<string>"
}
}Response
Updated file
⌘I
Update vector store file attributes
curl --request POST \
--url https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files/{file_id} \
--header 'Content-Type: application/json' \
--data '
{
"attributes": {}
}
'import requests
url = "https://api.synapsai.cloud/v1/vector_stores/{vector_store_id}/files/{file_id}"
payload = { "attributes": {} }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"object": "vector_store.file",
"vector_store_id": "<string>",
"status": "in_progress",
"created_at": 123,
"usage_bytes": 123,
"attributes": {},
"chunking_strategy": {},
"last_error": {
"code": "<string>",
"message": "<string>"
}
}