> 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 ProcedureRunPlan

POST https://{tenant_name}.benchling.com/api/v3/procedure-run-plan:batch-create
Content-Type: application/json

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

Reference: https://docs.benchling.com/docs/api/benchling-api/procedure-run-plan/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 CreateProcedureRunPlanInput, required)

## Response

### 201

Created

- `items` (list of ProcedureRunPlan, required)

## Errors

### 400 Procedure Run Plan 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 Procedure Run Plan 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 Procedure Run Plan 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 Procedure Run Plan 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 Procedure Run Plan 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 Procedure Run Plan 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

### CreateProcedureRunPlanInput

- `description` (string, required) — A human-readable description of the run plan. Must not exceed 255 characters.
- `studyId` (string, required) — The ID of the study this run plan belongs to. Format: `stdy_XXXXXXXX`.
- `confirmationMethodByParamVersionId` (list of ConfirmationMethodByParamVersionIdInput, optional) — Override the default confirmation method for specific procedure parameters. Each entry maps a parameter version ID to a confirmation method (TABLE or PLATE_MAP). Omit or pass an empty array to use the default confirmation methods.
- `dataEntryMode` (enum, optional) — Controls how data entry worksheets are created upon promotion. `INDIVIDUAL_CONDITION_REPLICATES` creates one worksheet per condition-replicate. `ALL_CONDITION_REPLICATES_TOGETHER` creates a single shared worksheet (not supported for assay run plans). Defaults to `INDIVIDUAL_CONDITION_REPLICATES` if omitted.
  - Allowed values: `INDIVIDUAL_CONDITION_REPLICATES`, `ALL_CONDITION_REPLICATES_TOGETHER`
- `workflowFlowchartConfigVersionId` (string, optional, nullable) — The ID of the workflow flowchart config version that defines the procedure template for this run plan. Format: `wffccv_XXXXXXXX`. Omit or set to null to create a run plan with no linked procedure.

### ProcedureRunPlan

A draft experiment plan that can be promoted to a `ProcedureRun` for execution. Scientists use run plans to configure experimental conditions, parameter values, and replicates before starting an actual experiment. Belongs to a `Study` and exposes its Workflows-backed procedure template through `procedureFlowchartConfigVersion`. Contains `ProcedureRunPlanCondition` objects that define the different experimental configurations to test. The `dataEntryMode` (see `ProcedureRunDataEntryMode`) specifies whether each condition-replicate will have its own data entry worksheet or share a single worksheet. The `confirmationMethodByParamVersionId` allows overriding default confirmation methods for specific parameters. Upon promotion, the run plan becomes a `ProcedureRun` with corresponding `ProcedureRunCondition` and `ProcedureRunConditionReplicate` objects. Also known as a "draft experiment" in the Benchling UI. ## Product mapping - `ProcedureRunPlan` is the API model for the **draft procedure run** setup object in the UI. - Promoting a run plan creates the executable `ProcedureRun` and carries forward its condition/replicate setup.

- `__typename` (string, optional)
- `confirmationMethodByParamVersionId` (list of ConfirmationMethodByParamVersionId, optional)
- `createdAt` (string, optional)
- `creator` (PrincipalRef, optional)
- `dataEntryMode` (enum, optional)
  - Allowed values: `INDIVIDUAL_CONDITION_REPLICATES`, `ALL_CONDITION_REPLICATES_TOGETHER`
- `description` (string, optional)
- `id` (string, optional)
- `modifiedAt` (string, optional)
- `procedureFlowchartConfigVersion` (ProcedureFlowchartConfigVersionRef, optional, nullable)
- `procedureRun` (ProcedureRunRef, optional, nullable)
- `procedureRunPlanConditions` (string, optional)
- `study` (StudyRef, optional)

### GeneralErrorDetail

### TooManyRequestsErrorBodyDetail

### InternalServerErrorBodyDetail

### ConfirmationMethodByParamVersionIdInput

- `confirmationMethod` (enum, required)
  - Allowed values: `TABLE`, `PLATE_MAP`
- `paramVersionId` (string, required)

### ConfirmationMethodByParamVersionId

Associates a procedure parameter version with its confirmation method, keyed by the parameter version ID. Used in `ProcedureRunPlan` to look up how a specific version of a parameter's values should be confirmed—either via TABLE (structured table entry) or PLATE_MAP (plate-based layout).

- `__typename` (string, optional)
- `confirmationMethod` (enum, optional)
  - Allowed values: `TABLE`, `PLATE_MAP`
- `paramVersionId` (string, optional)

### PrincipalRef

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

### ProcedureFlowchartConfigVersionRef

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

### ProcedureRunRef

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

### StudyRef

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

## Examples

**Request**

```json
{
  "items": [
    {
      "description": "Dose-response run plan",
      "studyId": "stdy_9CYiCggY",
      "confirmationMethodByParamVersionId": [
        {
          "confirmationMethod": "TABLE",
          "paramVersionId": "schver_Rm4nTvWz"
        }
      ],
      "dataEntryMode": "INDIVIDUAL_CONDITION_REPLICATES",
      "workflowFlowchartConfigVersionId": "wffccv_Lk3mQpXn"
    }
  ]
}
```

**Response**

```json
{
  "items": [
    {
      "__typename": "__typename",
      "confirmationMethodByParamVersionId": [
        {}
      ],
      "createdAt": "createdAt",
      "dataEntryMode": "INDIVIDUAL_CONDITION_REPLICATES",
      "description": "description",
      "id": "id",
      "modifiedAt": "modifiedAt",
      "procedureRunPlanConditions": "procedureRunPlanConditions"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://{tenant_name}.benchling.com/api/v3/procedure-run-plan:batch-create"

payload = { "items": [
        {
            "description": "Dose-response run plan",
            "studyId": "stdy_9CYiCggY",
            "confirmationMethodByParamVersionId": [
                {
                    "confirmationMethod": "TABLE",
                    "paramVersionId": "schver_Rm4nTvWz"
                }
            ],
            "dataEntryMode": "INDIVIDUAL_CONDITION_REPLICATES",
            "workflowFlowchartConfigVersionId": "wffccv_Lk3mQpXn"
        }
    ] }
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/procedure-run-plan:batch-create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"items":[{"description":"Dose-response run plan","studyId":"stdy_9CYiCggY","confirmationMethodByParamVersionId":[{"confirmationMethod":"TABLE","paramVersionId":"schver_Rm4nTvWz"}],"dataEntryMode":"INDIVIDUAL_CONDITION_REPLICATES","workflowFlowchartConfigVersionId":"wffccv_Lk3mQpXn"}]}'
};

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