Documentation
API Reference
Playground
Chat completionsResponsesSystem One
Document classificationEmbeddings

Studio API

Upload fileList filesRetrieve fileDelete file
Create jobRetrieve job

Search

Create vector storeList vector storesRetrieve vector storeModify vector storeDelete vector storeAdd file to vector storeList files in vector storeRetrieve file in vector storeRemove file from vector storeCreate file batchRetrieve file batchList files in file batchCancel file batchSearch vector store
Create response

Modify vector store

Update a vector store's name, expiration policy, or metadata.


Example

Request

curl -X POST https://api.upstage.ai/v2/vector_stores/vs_abc123def456 \
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "updated-docs",
    "metadata": {"team": "product"}
  }'

Response

{
  "id": "vs_abc123def456",
  "object": "vector_store",
  "created_at": 1711644800,
  "name": "updated-docs",
  "usage_bytes": 1024000,
  "file_counts": {
    "in_progress": 0,
    "completed": 3,
    "failed": 0,
    "cancelled": 0,
    "total": 3
  },
  "status": "completed",
  "last_active_at": 1711731200,
  "expires_after": null,
  "expires_at": null,
  "metadata": {"team": "product"}
}

Retrieve vector store

Fetch one vector store by ID. Covers the path parameter, the vector store object returned (name, usage_bytes, file_counts, status, expires_after, metadata), and an example request and response.

Delete vector store

Delete a vector store and every file and vector indexed in it. Covers the path parameter, the deletion confirmation object (id, object, deleted), and an example request and response.

On this page

Modify vector storeExampleRequestResponse
    POST
    /vector_stores/{vector_store_id}
    /vector_stores/{vector_store_id}

    The Authorization access token

    expires_after
    object

    metadata
    object

    Authorization

    Authorization
    Required
    Bearer <token>

    In: header

    Request Body

    application/jsonRequired

    namestring

    Updated name.

    Minimum length: 1

    expires_afterobject

    Updated expiration policy.

    metadataobject

    Updated metadata (max 16 keys, key max 64 chars, value max 512 chars).

    Path Parameters

    vector_store_id
    Required
    string

    The ID of the vector store.