Update TestDefinition
Update an existing Test Definition.
Updatable fields
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.
resultSchemaIdcannot 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.
archiveSubtreeIdandlegacyArchiveRecordIdare legacy archival fields and should normally be omitted.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
test_definition_id
ID of the TestDefinition.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
archiveReason
archived
description
Updated human-readable description. Empty strings are allowed; values must be at most 255 characters.
name
Updated display name. When provided, it is trimmed and must be non-empty and unique within the organization.
organizationId
Updated owning organization. Moving to a different organization requires admin access to that organization.
resultSchemaId
Updated result schema. Cannot be changed after test orders have been created for this test definition.
Response
OK
__typename
archiveReason
archived
createdAt
Timestamp of when the test definition was created.
creator
The user that created the test definition.
description
The description of the test definition. Empty strings are allowed.
id
The ID of the test definition.
modifiedAt
Timestamp of when the test definition was last modified.
name
The name of the test definition.
organization
The organization that owns the test definition, used for auth.
resultSchema
The result schema of the test definition, defines the measurement data shape.
Errors
400
Test Definition Update Request Bad Request Error
403
Test Definition Update Request Forbidden Error
404
Test Definition Update Request Not Found Error
409
Test Definition Update Request Conflict Error
429
Test Definition Update Request Too Many Requests Error
500
Test Definition Update Request Internal Server Error