---
title: "Batch update Dataset"
method: PATCH
path: "/api/v3/dataset:batch-update"
tags: ["Dataset"]
---

# Batch update Dataset

`PATCH /api/v3/dataset:batch-update`

## Request

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

Batch update Dataset synchronously in one transaction. Maximum 25 items per request.

## Request body

- object
  - `items` UpdateDatasetInputWithPathParams[], required
    - `allowCustomFieldDeletion` boolean: When true, custom fields present on the object but omitted from the update payload will be deleted. When false or omitted, omitting existing custom fields is an error. Defaults to false.
    - `archiveReason` string: Why it is being archived. Required when `archived` is `true`, and not allowed when unarchiving.
    - `archived` boolean: Set to `true` to archive or `false` to unarchive it. Archiving requires `archiveReason`.
    - `customFields` UpdateDatasetInputWithPathParamsCustomFields
    - `folderId` string
    - `id` string, required
    - `name` string

## Response `200`

OK

- DatasetBatchupdateResponse200
  - `items` Dataset[], required
    - `__typename` string
    - `archiveReason` string, nullable
    - `archived` boolean
    - `createdAt` string, datetime
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `customFields` CustomField[], nullable
      - `__typename` string
      - `name` string, nullable
      - `value` string, nullable
    - `dataFrameId` string, nullable
    - `displayId` string, nullable: A human-readable identifier for this dataset (e.g. "DATASET-1"). Automatically generated and unique within the tenant.
    - `folder` FolderRef
      - `__typename` string
      - `id` string, api_id
    - `id` string
    - `modifiedAt` string, datetime
    - `name` string, nullable

## 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/3873a10bf7b8?raw)
