---
title: "Batch update RequestV2Definition"
method: PATCH
path: "/api/v3/request-v2-definition:batch-update"
tags: ["Request Template"]
---

# Batch update RequestV2Definition

`PATCH /api/v3/request-v2-definition:batch-update`

## Request

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

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

## Headers

- `EARLY-ACCESS` string

## Request body

- object
  - `items` UpdateRequestV2DefinitionInputWithPathParams[], 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: Description of the request template. Must not exceed 1024 characters and must not contain a null character.
    - `id` string, required
    - `name` string: Name of the request template. Must not be empty, must not exceed 255 characters, and must not contain a null character.
    - `prefix` string: Prefix for the displayId of requests created from this template.
    - `templateCollectionId` string: API ID of the template collection to move this request template to.

## Response `200`

OK

- RequestV2DefinitionBatchupdateResponse200
  - `items` RequestV2Definition[], required
    - `archiveReason` string, nullable
    - `archived` boolean
    - `createdAt` string, datetime, nullable
    - `creator` PrincipalRef
      - `__typename` string
      - `id` string, api_id
    - `description` string, nullable: Description of the request template.
    - `id` string
    - `modifiedAt` string, datetime, nullable
    - `name` string
    - `prefix` string: The prefix for the displayId of tasks of this schema.
    - `templateCollection` TemplateCollectionRef
      - `__typename` string
      - `id` string, api_id
    - `webUrl` string, nullable
    - `workflowTaskSchema` WorkflowTaskSchemaRef
      - `__typename` string
      - `id` string, api_id

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