---
title: "POST /vector_stores/{vectorStoreId}/file_batches"
method: POST
path: "/vector_stores/{vectorStoreId}/file_batches"
---

# POST /vector_stores/{vectorStoreId}/file_batches

`POST /vector_stores/{vectorStoreId}/file_batches`

Create a vector store file batch.

## Path parameters

- `vectorStoreId` string, required

## Query parameters

- `api-version` string, required

## Request body

- object
  - `file_ids` string[] — List of file identifiers.
  - `data_sources` VectorStoreDataSource[] — List of Azure assets.
    - `uri` string, required — Asset URI.
    - `type` 'uri_asset' | 'id_asset', required — Type of vector storage asset. Asset type may be a uri_asset, in this case it should contain asset URI ID, in the case of id_asset it should contain the data ID.
  - `chunking_strategy` VectorStoreChunkingStrategyRequest — An abstract representation of a vector store chunking strategy configuration.
    - `type` 'auto' | 'static', required — Type of chunking strategy

## Response `200`

The request has succeeded.

- VectorStoreFileBatch — A batch of files attached to a vector store.
  - `id` string, required — The identifier, which can be referenced in API endpoints.
  - `object` 'vector_store.files_batch', required — The object type, which is always `vector_store.file_batch`.
  - `created_at` integer, required — The Unix timestamp (in seconds) for when the vector store files batch was created.
  - `vector_store_id` string, required — The ID of the vector store that the file is attached to.
  - `status` 'in_progress' | 'completed' | 'cancelled' | 'failed', required — The status of the vector store file batch.
  - `file_counts` VectorStoreFileCount, required — Counts of files processed or being processed by this vector store grouped by status.
    - `in_progress` integer, required — The number of files that are currently being processed.
    - `completed` integer, required — The number of files that have been successfully processed.
    - `failed` integer, required — The number of files that have failed to process.
    - `cancelled` integer, required — The number of files that were cancelled.
    - `total` integer, required — The total number of files.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/ai-azure-ai-agents.md) · [All operations](https://skmtc.net/azure/apis/ai-azure-ai-agents/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/ai-azure-ai-agents/versions/de4a99f09829/schema)
