---
title: "Bulk Create DNA Oligos"
method: POST
path: "/dna-oligos:bulk-create"
tags: ["dnaOligos"]
---

# Bulk Create DNA Oligos

`POST /dna-oligos:bulk-create`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/dna-oligos:bulk-create`
- Auth: HTTP bearer

Bulk Create DNA Oligos. Limit of 1000 DNA Oligos per request.

## Request body

- DnaOligosBulkCreateRequest
  - `dnaOligos` DnaOligoCreate[]
    - `aliases` string[]: Aliases to add to the Oligo
    - `authorIds` string[]: IDs of users to set as the Oligo's authors.
    - `bases` string: Base pairs of the oligo.
    - `customFields` CustomFields
    - `fields` Fields
    - `folderId` string: ID of the folder containing the entity. Can be left empty when registryId is present.
    - `name` string, required: Name of the Oligo.
    - `schemaId` string: ID of the oligo's schema.
    - `entityRegistryId` string: Entity registry ID to set for the registered entity. Cannot specify both entityRegistryId and namingStrategy at the same time.
    - `namingStrategy` 'NEW_IDS' | 'IDS_FROM_NAMES' | 'DELETE_NAMES' | 'SET_FROM_NAME_PARTS' | 'REPLACE_NAMES_FROM_PARTS' | 'KEEP_NAMES' | 'REPLACE_ID_AND_NAME_FROM_PARTS': Specifies the behavior for automatically generated names when registering an entity. - NEW_IDS: Generate new registry IDs - IDS_FROM_NAMES: Generate registry IDs based on entity names - DELETE_NAMES: Generate new registry IDs and replace name with registry ID - SET_FROM_NAME_PARTS: Generate new registry IDs, rename according to name template, and keep old name as alias - REPLACE_NAMES_FROM_PARTS: Generate new registry IDs, and replace name according to name template - KEEP_NAMES: Keep existing entity names as registry IDs - REPLACE_ID_AND_NAME_FROM_PARTS: Generate registry IDs and names according to name template
    - `registryId` string: Registry ID into which entity should be registered. this is the ID of the registry which was configured for a particular organization To get available registryIds, use the [/registries endpoint](https://docs.benchling.com/docs/api/v2/benchling-api/registry/list-registries) Required in order for entities to be created directly in the registry.
    - `annotations` DnaAnnotation[]: Annotations on the Oligo.
      - `color` string: Hex color code used when displaying this feature in the UI.
      - `customFields` SequenceFeatureCustomField[]
        - `name` string: Name of the custom field
        - `value` string: Value of the custom field
      - `name` string
      - `notes` string
      - `end` integer: 0-based exclusive end index. The end of the sequence is always represented as 0.
      - `start` integer: 0-based inclusive start index.
      - `strand` integer
      - `type` string
    - `helm` string: Representation of the oligo in HELM syntax, including any chemical modifications
    - `customNotation` string: Representation of the sequence or oligo in the custom notation specified by customNotationId
    - `customNotationId` string: ID of the notation used to interpret the string provided in the customNotation field

## Response `202`

This endpoint launches a [long-running task](https://docs.benchling.com/docs/api/v2/benchling-api/tasks/get-task) and returns the Task ID of the launched task.
The task response contains the full list of DNA Oligos that were created.

- AsyncTaskLink
  - `taskId` string

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
