curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"expires_after": {
"anchor": "last_active_at",
"days": 183
},
"metadata": {}
}
'{
"id": "<string>",
"object": "vector_store",
"created_at": 123,
"name": "<string>",
"usage_bytes": 123,
"file_counts": {
"in_progress": 123,
"completed": 123,
"failed": 123,
"cancelled": 123,
"total": 123
},
"status": "expired",
"last_active_at": 123,
"metadata": {},
"expires_after": {
"anchor": "last_active_at",
"days": 183
},
"expires_at": 123
}curl --request POST \
--url https://api.openai.com/v1/vector_stores/{vector_store_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"expires_after": {
"anchor": "last_active_at",
"days": 183
},
"metadata": {}
}
'{
"id": "<string>",
"object": "vector_store",
"created_at": 123,
"name": "<string>",
"usage_bytes": 123,
"file_counts": {
"in_progress": 123,
"completed": 123,
"failed": 123,
"cancelled": 123,
"total": 123
},
"status": "expired",
"last_active_at": 123,
"metadata": {},
"expires_after": {
"anchor": "last_active_at",
"days": 183
},
"expires_at": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the vector store to modify.
The name of the vector store.
The expiration policy for a vector store.
Show child attributes
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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Show child attributes
OK
A vector store is a collection of processed files can be used by the file_search tool.
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.
vector_store The Unix timestamp (in seconds) for when the vector store was created.
The name of the vector store.
The total number of bytes used by the files in the vector store.
Show child attributes
The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.
expired, in_progress, completed The Unix timestamp (in seconds) for when the vector store was last active.
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, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
Show child attributes
The expiration policy for a vector store.
Show child attributes
The Unix timestamp (in seconds) for when the vector store will expire.
Was this page helpful?