---
title: "Batch create File"
method: POST
path: "/api/v3/file:batch-create"
tags: ["File"]
---

# Batch create File

`POST /api/v3/file:batch-create`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/file:batch-create`
- Auth: HTTP bearer

Batch create File synchronously in one transaction. Maximum 25 items per request.

## Request body

- object
  - `items` CreateFileInput[], required
    - `customFields` CreateFileInputCustomFields
    - `filename` string: The name of the underlying file. Defaults to the ScratchFile's filename. Must not be blank, and its extension must not be blocked by the tenant's file upload settings.
    - `folderId` string, required
    - `name` string, required
    - `scratchFileId` string, required

## Response `201`

Created

- FileBatchcreateResponse201
  - `items` File[], required
    - `__typename` string
    - `archiveReason` string, nullable
    - `archived` boolean
    - `createdAt` string, datetime
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `currentVersionId` string, nullable
    - `customFields` CustomField[], nullable
      - `__typename` string
      - `name` string, nullable
      - `value` string, nullable
    - `displayId` string, nullable
    - `externalFileId` string, nullable: Use scratchFile to access externalFileId.
    - `filename` string, nullable: Use scratchFile to access filename.
    - `folder` FolderRef
      - `__typename` string
      - `id` string, api_id
    - `id` string
    - `mimeType` string, nullable: Use scratchFile to access mimeType.
    - `modifiedAt` string, datetime
    - `name` string, nullable
    - `scratchFile` ScratchFileRef
      - `__typename` string
      - `id` string, api_id
    - `versions` string, uri: Published versions of the File, newest first.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/benchling/apis/benchling-api.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api/revisions/c9f087b98b8b?raw)
