Body
Required
-
The name of the vector store.
-
The expiration policy for a vector store.
-
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.
POST
/vector_stores/{vector_store_id}
curl \
--request POST 'https://api.openai.com/v1/vector_stores/{vector_store_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string","expires_after":{"anchor":"last_active_at","days":42},"metadata":{"additionalProperty1":"string","additionalProperty2":"string"}}'
Request examples
{
"name": "string",
"expires_after": {
"anchor": "last_active_at",
"days": 42
},
"metadata": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}
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": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}