Create TestDefinition
Create a Test Definition that can be referenced by Test Orders and assay workflows.
Required fields
Notes
- The creator is set automatically from the authenticated user or app.
- The caller must have admin access to the organization and read access to the result schema.
nameanddescriptionmust each be at most 255 characters.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
description
Human-readable description for the test definition. Empty strings are allowed; values must be at most 255 characters.
name
Display name for the test definition. Must be non-empty after trimming whitespace and unique within the organization.
organizationId
The API ID of the organization that owns the test definition.
resultSchemaId
The API ID of the result schema that defines the shape of results captured for this test.
Response
Created
__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 Create Request Bad Request Error
403
Test Definition Create Request Forbidden Error
404
Test Definition Create Request Not Found Error
409
Test Definition Create Request Conflict Error
429
Test Definition Create Request Too Many Requests Error
500
Test Definition Create Request Internal Server Error