stores

Add files to store in a batch

Changed on

Add already uploaded files to a store in one call, for backfills.

Each item takes one token from a rate limit of its own, at the same limits as file uploads. A batch never replaces a file: one already in the store (same file ID or external ID), in any status, comes back with store_file_already_exists_error. To retry a failed file, delete it first; to update a file, use the single-file endpoint. Each item is checked on its own: one rejected item is reported in data without failing the others.

post/v1/stores/{store_identifier}/file_batches

Request

Path parameters

string required
OR
string uuid required

Request body

Response

The outcome of each file

object'store.file_batch'

Type of the object

Example response

{
  "data": [
    {
      "error": {
        "code": "store_file_already_exists_error"
      }
    }
  ]
}

Changes