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

# Batch update Unit

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

## Request

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

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

## Request body

- object
  - `items` UpdateUnitInputWithPathParams[], required
    - `aliases` string[]: Alternative abbreviations for this unit, e.g. alternate symbols.
    - `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`.
    - `id` string, required
    - `name` string: The long-form name, e.g. "milliliter".
    - `symbol` string: The short-form label, e.g. "mL".

## Response `200`

OK

- UnitBatchupdateResponse200
  - `items` Unit[], required
    - `__typename` string
    - `aliases` string[]: Any additional short-form labels that should be recognized in input
    - `archiveReason` string, nullable
    - `archived` boolean
    - `conversionFactor` string, decimal: Conversion factor relative to the UnitType's baseUnit. E.g. for a kilometer, the baseUnit is meter and the conversionFactor is 1000.
    - `createdAt` string, datetime, nullable
    - `id` string
    - `modifiedAt` string, datetime, nullable
    - `name` string: Default long-form identifier, e.g. "meter".
    - `symbol` string: Default short-form label, e.g. "m" for meter.
    - `unitType` UnitTypeRef
      - `__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/3873a10bf7b8?raw)
