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

# Batch update Analysis

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

## Request

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

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

## Headers

- `EARLY-ACCESS` string

## Request body

- object
  - `items` UpdateAnalysisInputWithPathParams[], required
    - `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`.
    - `description` string, nullable
    - `folderId` string
    - `id` string, required
    - `name` string
    - `studyIds` string[]: Study IDS to associate with the item.

## Response `200`

OK

- AnalysisBatchupdateResponse200
  - `items` Analysis[], required
    - `__typename` string
    - `archiveReason` string, nullable
    - `archived` boolean
    - `createdAt` string, datetime
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `description` string, nullable
    - `folder` FolderRef
      - `__typename` string
      - `id` string, api_id
    - `id` string
    - `modifiedAt` string, datetime
    - `name` string
    - `statusCode` 'AI_PROPOSED' | 'BLOCKED' | 'FAILED' | 'HALTED' | 'RUNNING' | 'SUCCEEDED' | 'SUCCEEDED_WITH_ERRORS' | 'WAITING'
    - `steps` string, uri
    - `webUrl` string

## 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)
