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

# Batch update Salt

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

## Request

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

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

## Headers

- `EARLY-ACCESS` string

## Request body

- object
  - `items` UpdateSaltInputWithPathParams[], 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`.
    - `code` string, nullable: Configurable identifier for this salt. Must be unique (case-insensitive) across the Salt & Solvate library.
    - `id` string, required
    - `name` string: The name of the salt. Must be unique (case-insensitive) across the Salt & Solvate library.

## Response `200`

OK

- SaltBatchupdateResponse200
  - `items` Salt[], required
    - `__typename` string
    - `archiveReason` string, nullable
    - `archived` boolean
    - `calculatedMolecularWeight` number, double, nullable: The molecular weight of the salt.
    - `canonicalSmiles` string: The SMILES representation of the salt after standardization.
    - `code` string, nullable: Optional configurable identifier for this salt (e.g., "HCl", "MS"). Unique across both salts and solvents within a tenant.
    - `createdAt` string, datetime
    - `id` string
    - `modifiedAt` string, datetime
    - `molecularFormula` string: The molecular formula (e.g., "HCl").
    - `molfile` string: The molfile representation of the salt.
    - `name` 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/c9f087b98b8b?raw)
