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

Cancel file batch

Cancel a file batch. Files that are already completed will not be affected. Files that are still in progress will be cancelled.

POST
/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel
/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Path Parameters

vector_store_id
Required
string

The ID of the vector store.

batch_id
Required
string

The ID of the file batch.


Example

Request

curl -X POST https://api.upstage.ai/v2/vector_stores/vs_abc123def456/file_batches/vsfb_abc123def456/cancel \
  -H "Authorization: Bearer $UPSTAGE_API_KEY"

Response

{
  "id": "vsfb_abc123def456",
  "object": "vector_store.files_batch",
  "created_at": 1711644900,
  "vector_store_id": "vs_abc123def456",
  "status": "cancelled",
  "file_counts": {
    "in_progress": 0,
    "completed": 2,
    "failed": 0,
    "cancelled": 1,
    "total": 3
  }
}

List files in file batch

List the files in a file batch. Covers the pagination and status filter parameters (limit, order, after, before, filter), the list object returned, and an example request and response.

Search vector store

Run a natural-language query against a vector store. Covers the request body (query, max_num_results, filters), the search results page object (data with file_id, filename, score, content; has_more, next_page), example request and response, and a note on multi-query requests.

On this page

Cancel file batchExampleRequestResponse