> 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 create LibraryParameterDefinition

POST https://{tenant_name}.benchling.com/api/v3/library-parameter-definition:batch-create
Content-Type: application/json

Batch create LibraryParameterDefinition synchronously in one transaction. Maximum 25 items per request.

Reference: https://docs.benchling.com/docs/api/benchling-api/library-parameter-definition/batchcreate

## 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 CreateLibraryParameterDefinitionInput, required)

## Response

### 201

Created

- `items` (list of LibraryParameterDefinition, required)

## Errors

### 400 Library Parameter Definition Batch Create 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 Library Parameter Definition Batch Create 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 Library Parameter Definition Batch Create 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 Library Parameter Definition Batch Create 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 Library Parameter Definition Batch Create 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 Library Parameter Definition Batch Create 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

### CreateLibraryParameterDefinitionInput

- `dataType` (enum, required) — The data type of values recorded for this parameter. Determines which additional fields are required: `FLOAT` requires `unitTypeId`, `DROPDOWN` requires `schemaFieldSelectorId`. Cannot be changed after creation.
  - Allowed values: `FLOAT`, `DATETIME`, `TEXT`, `DROPDOWN`
- `description` (string, required) — A description of what this parameter measures or represents. Maximum 2048 characters.
- `name` (string, required) — Display name for the parameter definition. Must contain at least one alphanumeric character. Maximum 44 characters.
- `unitTypeId` (string, optional, nullable) — The ID of the unit type for this parameter. Required when `dataType` is `FLOAT`, forbidden otherwise. Use `GET /benchling/unit-type/items` to list available unit types. Format: `qnty_XXXXXXXX`.
- `creatorId` (string, optional, deprecated) — Deprecated. This field is ignored — the creator is always set to the authenticated user.

### LibraryParameterDefinition

A reusable parameter definition stored in the Parameter Library. LibraryParameterDefinitions allow organizations to standardize parameters used across multiple procedures by defining a name, description, data type, and optional unit type. When creating procedure parameters, users can link to a library parameter definition to inherit its settings, ensuring consistency across experiments.

- `__typename` (string, optional)
- `archiveReason` (string, optional, nullable)
- `archived` (boolean, optional)
- `createdAt` (string, optional)
- `creator` (PrincipalRef, optional)
- `dataType` (enum, optional)
  - Allowed values: `AA_PART_LINK`, `AA_SEQUENCE_LINK`, `ASSAY_REQUEST_LINK`, `ASSAY_RESULT_LINK`, `ASSAY_RUN_LINK`, `BATCH_LINK`, `BLOB_LINK`, `BOOLEAN`, `CUSTOM_ENTITY_LINK`, `DATE`, `DATETIME`, `DNA_SEQUENCE_LINK`, `ENTITY_LINK`, `ENTRY_LINK`, `FLOAT`, `INTEGER`, `JSON`, `LONG_TEXT`, `MIXTURE_LINK`, `MOLECULE_LINK`, `BASE_MOLECULE_LINK`, `PART_LINK`, `RNA_PART_LINK`, `RNA_SEQUENCE_LINK`, `SAMPLE_LINK`, `DROPDOWN`, `STORAGE_LINK`, `TEXT`, `TRANSCRIPTION_LINK`, `TRANSLATION_LINK`
- `description` (string, optional)
- `id` (string, optional)
- `modifiedAt` (string, optional)
- `name` (string, optional)
- `unitType` (UnitTypeRef, optional, nullable)

### GeneralErrorDetail

### TooManyRequestsErrorBodyDetail

### InternalServerErrorBodyDetail

### PrincipalRef

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

### UnitTypeRef

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

## Examples

**Request**

```json
{
  "items": [
    {
      "dataType": "FLOAT",
      "description": "The temperature at which the sample is incubated during the reaction step.",
      "name": "Incubation Temperature",
      "unitTypeId": "qnty_k8Rt4vNp"
    }
  ]
}
```

**Response**

```json
{
  "items": [
    {
      "__typename": "__typename",
      "archiveReason": "archiveReason",
      "archived": true,
      "createdAt": "createdAt",
      "dataType": "AA_PART_LINK",
      "description": "description",
      "id": "id",
      "modifiedAt": "modifiedAt",
      "name": "name"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://{tenant_name}.benchling.com/api/v3/library-parameter-definition:batch-create"

payload = { "items": [
        {
            "dataType": "FLOAT",
            "description": "The temperature at which the sample is incubated during the reaction step.",
            "name": "Incubation Temperature",
            "unitTypeId": "qnty_k8Rt4vNp"
        }
    ] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://{tenant_name}.benchling.com/api/v3/library-parameter-definition:batch-create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"items":[{"dataType":"FLOAT","description":"The temperature at which the sample is incubated during the reaction step.","name":"Incubation Temperature","unitTypeId":"qnty_k8Rt4vNp"}]}'
};

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