> This page is for Developer Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.benchling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.benchling.com/_mcp/server.

# Batch update AaMonomer

PATCH https://{tenant_name}.benchling.com/api/v3/aa-monomer:batch-update
Content-Type: application/json

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

Reference: https://docs.benchling.com/docs/api/benchling-api/aa-monomer/batchupdate

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Headers

- `EARLY-ACCESS` (string, optional) — Set to true to access beta operations via /api/v3.

### Body (application/json)

This endpoint expects an object.

- `items` (list of UpdateAaMonomerInputWithPathParams, required)

## Response

### 200

OK

- `items` (list of AaMonomer, required)

## Errors

### 400 Aa Monomer Batch Update Request Bad Request Error

Bad Request

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 403 Aa Monomer Batch Update Request Forbidden Error

Forbidden

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 404 Aa Monomer Batch Update Request Not Found Error

Not Found

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 409 Aa Monomer Batch Update Request Conflict Error

Conflict

- `detail` (GeneralErrorDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)

### 429 Aa Monomer Batch Update Request Too Many Requests Error

Too Many Requests

- `detail` (TooManyRequestsErrorBodyDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `invalidId` (string, optional)
- `violated-policies` (list of enum, optional) — The budget policies that rejected the request, in canonical order: `user`, `integration`, then `tenant`.
  - Allowed values: `user`, `integration`, `tenant`

### 500 Aa Monomer Batch Update Request Internal Server Error

Internal Server Error

- `detail` (InternalServerErrorBodyDetail, required, nullable)
- `instance` (string, required)
- `status` (integer, required)
- `title` (string, required, nullable)
- `type` (string, required)
- `errorId` (string, optional)

## Types

### UpdateAaMonomerInputWithPathParams

- `id` (string, required)
- `archiveReason` (string, optional)
- `archived` (boolean, optional)
- `chemicalStructure` (AaMonomerChemicalStructureInput, optional)
- `customMolecularWeight` (double, optional, nullable) — Optional molecular weight value that the user can provide to override the calculated value.
- `name` (string, optional)
- `symbol` (string, optional) — User-defined identifier of the monomer, unique per tenant.

### AaMonomer

An amino acid monomer is a building block for modified peptide sequences. Each AA monomer has a symbol identifier, chemical structure (SMILES/molfile), molecular weight, and attachment points defining where it bonds to other monomers. The naturalAnalog field links modified monomers to their standard amino acid counterpart (e.g., a modified alanine analog links to natural 'A'). AA monomers define the chemistry of non-standard amino acids used in peptide and protein engineering.

- `__typename` (string, optional)
- `archiveReason` (string, optional, nullable)
- `archived` (boolean, optional)
- `attachmentPoints` (list of enum, optional) — The capping groups present at each attachment point where the monomer bonds to other monomers.
  - Allowed values: `H`, `OH`, `NH2`, `CH3`
- `calculatedMolecularWeight` (double, optional) — The molecular weight of the monomer with capping groups removed, computed using the average atomic weights of each element weighted by natural isotopic frequency.
- `canonicalSmiles` (string, optional) — The SMILES representation of the chemical structure after being standardized.
- `createdAt` (string, optional)
- `creator` (PrincipalRef, optional, nullable)
- `customMolecularWeight` (double, optional, nullable) — Optional molecular weight value that the user can provide to override the calculated value.
- `exactMolecularWeight` (double, optional) — The exact (monoisotopic) molecular weight of the monomer with capping groups removed, computed using the atomic weight of the most frequent isotope of each element.
- `id` (string, optional)
- `isNatural` (boolean, optional) — Whether this monomer represents a natural (unmodified) amino acid, as opposed to a modified or synthetic variant.
- `modifiedAt` (string, optional)
- `molfile` (string, optional) — The molfile representation of the chemical structure.
- `name` (string, optional)
- `naturalAnalog` (enum, optional) — The standard amino acid single-letter code that this monomer is an analog of.
  - Allowed values: `A`, `B`, `C`, `D`, `E`, `F`, `G`, `H`, `I`, `J`, `K`, `L`, `M`, `N`, `O`, `P`, `Q`, `R`, `S`, `T`, `U`, `V`, `W`, `X`, `Y`, `Z`
- `originalSmiles` (string, optional, nullable) — The SMILES string that was originally provided upon creation. Null if the user did not originally provide SMILES.
- `symbol` (string, optional) — User-defined identifier of the monomer, unique per tenant.

### GeneralErrorDetail

### TooManyRequestsErrorBodyDetail

### InternalServerErrorBodyDetail

### AaMonomerChemicalStructureInput

- `structureFormat` (enum, required)
  - Allowed values: `smiles`
- `value` (string, required)

### PrincipalRef

- `__typename` (string, optional)
- `id` (string, optional)

## Examples

**Request**

```json
{
  "items": [
    {
      "id": "id"
    }
  ]
}
```

**Response**

```json
{
  "items": [
    {
      "__typename": "__typename",
      "archiveReason": "archiveReason",
      "archived": true,
      "attachmentPoints": [
        "H"
      ],
      "calculatedMolecularWeight": 1.1,
      "canonicalSmiles": "canonicalSmiles",
      "createdAt": "createdAt",
      "customMolecularWeight": 1.1,
      "exactMolecularWeight": 1.1,
      "id": "id",
      "isNatural": true,
      "modifiedAt": "modifiedAt",
      "molfile": "molfile",
      "name": "name",
      "naturalAnalog": "A",
      "originalSmiles": "originalSmiles",
      "symbol": "symbol"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://{tenant_name}.benchling.com/api/v3/aa-monomer:batch-update"

payload = { "items": [{ "id": "id" }] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://{tenant_name}.benchling.com/api/v3/aa-monomer:batch-update';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"items":[{"id":"id"}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```