Benchling Test Definition API

A Test Definition is a configuration object that specifies a type of test or assay that can be ordered against samples. Each Test Definition is associated with a `ResultSchema` that defines the structure of measurement data captured when the test is performed. Test Definitions serve as templates—when a test needs to be performed on a sample, a `TestOrder` is created referencing the appropriate Test Definition. Test Definitions are used within clinical and preclinical study workflows (see `StudySampleTestPlan`) and can be linked to `Procedure` assays for execution. Belongs to an `Organization` and can be archived when no longer needed.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /test-definition Create a test definition · Create TestDefinition #
Ask an LLM
“How do I create a test definition that assay workflows can reference?”
“What result schema does a new test definition need?”
Tell an agent
Create test definition {name} in organization {organizationId} using result schema {resultSchemaId}.
Add a test definition {name} described as {description}.
GET /test-definition/items List test definitions · List TestDefinition items #
Ask an LLM
“Which test definitions exist in my organization?”
“Can I list only the archived test definitions?”
Tell an agent
List all test definitions.
List test definitions modified after {modified}.
GET /test-definition/{test_definition_id} Get a test definition · Get TestDefinition by ID #
Ask an LLM
“What result schema and description does one test definition have?”
“Can I fetch a single test definition by ID?”
Tell an agent
Get test definition {test_definition_id}.
Show the result schema of test definition {test_definition_id}.
PATCH /test-definition/{test_definition_id} Update a test definition · Update TestDefinition #
Ask an LLM
“Can I rename an existing test definition?”
“Is it possible to move a test definition to another organization?”
Tell an agent
Rename test definition {test_definition_id} to {name}.
Move test definition {test_definition_id} to organization {organizationId}.
POST /test-definition:batch-create Create several test definitions at once · Batch create TestDefinition #
Ask an LLM
“Can I create many test definitions in one request?”
“What is the maximum number of test definitions I can create in a batch?”
Tell an agent
Create these test definitions in one batch: {items}.
Synchronously create test definitions {items} in a single transaction.
PATCH /test-definition:batch-update Update several test definitions at once · Batch update TestDefinition #
Ask an LLM
“Can I update many test definitions in one request?”
“Is there a batch update for test definitions?”
Tell an agent
Update these test definitions in one batch: {items}.
Synchronously update test definitions {items} in a single transaction.
POST /test-definition:bulk-create Import test definitions from a file · Bulk create TestDefinition #
Ask an LLM
“Can I import test definitions from a file asynchronously?”
“What file format do I upload to bulk create test definitions?”
Tell an agent
Bulk create test definitions from file {fileId}.
Import test definitions in {fileId} asynchronously.
PATCH /test-definition:bulk-update Update test definitions from a file · Bulk update TestDefinition #
Ask an LLM
“Can I bulk update test definitions from a file?”
“How do I change archived status for many test definitions at once?”
Tell an agent
Bulk update test definitions from file {fileId}.
Import updated test definitions in {fileId} asynchronously.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/benchling:benchling-testdefinition-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

benchling-testdefinition-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Benchling Test Definition API
  version: 2.0.0
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  description: 'Operations tagged TestDefinition across 2 of this provider''s published API definitions: benchling-openapi.yml, benchling-v3-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/v3
security:
- oAuth: []
- basicApiKeyAuth: []
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/benchling/openapi/benchling-testdefinition-api-openapi.yml