Test Definition
Update TestDefinition
Update an existing Test Definition.
Updatable fields
| Field | Description |
|---|---|
| name | New display name. Names are trimmed and must be unique within the organization. |
| organizationId | New owning organization. Use GET /benchling/organization/items to find organization IDs. |
| resultSchemaId | New result schema. Use GET /benchling/result-schema/items to find result schema IDs. |
| description | New description. Empty strings are allowed. |
| archived, archiveReason, archiveUserId | Archive or unarchive the test definition. |
Constraints
- The caller must have read access to the result schema.
- Moving the Test Definition to a different organization requires admin access to the target organization. Re-specifying the current organization only requires read access to it.
- resultSchemaId cannot be changed after any Test Orders exist for the Test Definition.
- Archiving fails if the Test Definition has pending, in-progress, or blocked Test Orders.
- Archiving also fails while the Test Definition is associated with an unarchived assay.
- archiveSubtreeId and legacyArchiveRecordId are legacy archival fields and should normally be omitted.
patch/api/v3/test-definition/{test_definition_id}
Request
- Base URLhttps://{tenant_name}.benchling.com
- AuthHTTP bearer
Path parameters
test_definition_idstring required
ID of the TestDefinition.
Headers
EARLY-ACCESSstring
Set to true to access beta operations via /api/v3.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.