Path parameters
-
The ID of the vector store to modify.
Body Required
-
name string | null
The name of the vector store.
-
expires_after object
The expiration policy for a vector store.
-
metadata object | null
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maxium of 512 characters long.
POST
/vector_stores/{vector_store_id}
curl \
-X POST https://api.openai.com/v1/vector_stores/{vector_store_id} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","expires_after":{"anchor":"last_active_at","days":42},"metadata":{}}'
Request example
{
"name": "string",
"expires_after": {
"anchor": "last_active_at",
"days": 42
},
"metadata": {}
}
Response examples (200)
{
"id": "string",
"object": "vector_store",
"created_at": 42,
"name": "string",
"usage_bytes": 42,
"file_counts": {
"in_progress": 42,
"completed": 42,
"failed": 42,
"cancelled": 42,
"total": 42
},
"status": "expired",
"expires_after": {
"anchor": "last_active_at",
"days": 42
},
"expires_at": 42,
"last_active_at": 42,
"metadata": {}
}