---
title: "Batch update AutomationTemplate"
method: PATCH
path: "/api/v3/automation-template:batch-update"
tags: ["Automation Template"]
---

# Batch update AutomationTemplate

`PATCH /api/v3/automation-template:batch-update`

## Request

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

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

## Headers

- `EARLY-ACCESS` string

## Request body

- object
  - `items` UpdateAutomationTemplateInputWithPathParams[], 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: Updated human-readable description. Must be at most 1500 characters. Set to `null` to clear the existing description; omit to leave it unchanged.
    - `id` string, required
    - `name` string
    - `shouldPublish` boolean
    - `templateCollectionId` string

## Response `200`

OK

- AutomationTemplateBatchupdateResponse200
  - `items` AutomationTemplate[], required
    - `archiveReason` string, nullable
    - `archived` boolean
    - `configVariables` string, uri
    - `createdAt` string, datetime
    - `createdFromPipeline` AnalysisRef
      - `__typename` string
      - `id` string, api_id
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `dataFrameVariables` string, uri
    - `id` string
    - `modifiedAt` string, datetime
    - `name` string
    - `steps` string, uri
    - `templateCollection` TemplateCollectionRef
      - `__typename` string
      - `id` string, api_id
    - `webUrl` 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)
