Skip to navigation

Create DnaSequenceSchema

Create a DNA sequence schema.

Naming and identifiers

  • Schema name (display name) uniqueness within the organization is case-sensitive.
  • systemName must be unique within the organization across all schema families (warehouse SQL identifiers share one namespace per organization).
  • itemIdPrefix validation rules are described on that field.

Archiving

  • When archiving, archiveReason must be one of the archive purposes allowed for this schema type. Allowed values are not a fixed OpenAPI enum; they depend on tenant configuration and how the schema is classified in the archive system.

Constraints

  • Configuring a constraint requires a registry with strict validation enabled.

Sub-resource listings

  • GET …/field-definitions/items, GET …/fieldsets/items, and GET …/validation-rules/items return unpaginated lists. pageSize and unknown query parameters are ignored.

Responses

  • OpenAPI documents 409 Conflict on many operations, but these endpoints do not return 409.

Field definitions

Allowed link field definition types include the primitives and standard links in CreateSchemaFieldDefinitionInput, plus CreateDnaPartLinkFieldDefinitionInput, CreateTranscriptionLinkFieldDefinitionInput, and CreateTranslationLinkFieldDefinitionInput.

Name templates

  • nameTemplate is not accepted on create. Configure name templates with a PATCH update.

Validation rules

  • Create validation rules with :create-validation-rule. Rule definition strings use the grammar this.fields.<systemName> = "value" (field references must use the field’s systemName, not its display name). The expression must evaluate to true for validation to pass; when it evaluates to false, the rule fails and errorMessage is returned.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
descriptionstringRequired

A human-readable description of the schema. At most 1000 characters.

itemIdPrefixstringRequired

Prefix used for registry IDs (entityRegistryId) of entities registered from this schema. Required when no prefix-providing fieldset is applied in fieldsets. When set directly, must be at most 32 characters, must not contain whitespace or special characters (letters, digits, ., _, and - are allowed), and must not end in a digit. Prefix uniqueness within the registry (including archived schemas) follows the organization setting ENABLE_REGISTRY_CASE_INSENSITIVE: when enabled, comparison is case-insensitive; when disabled, prefixes that differ only by letter case are treated as distinct. An applied fieldset that provides a prefix takes precedence and this value is not used for prefix-uniqueness validation.

organizationIdstringRequired
The API ID of the organization this schema belongs to. The organization must exist and be accessible to the caller.
showResiduesbooleanRequired
Whether DNA residues are displayed in the UI for entities registered from this schema.
availableRegistrationNamingOptionslist of enumsOptional

Naming strategies allowed when registering entities of this schema. Optional; when omitted, defaults to the organization’s enabled labeling strategies, then fieldset configuration is applied.

constraintobjectOptional

Optional uniqueness constraint configured directly on this schema at creation. Requires a registry with strict validation enabled. Set uniqueResidues to IGNORE_CASE to include nucleotide residues (case-insensitive) in the composite uniqueness key. Omit to create the schema without a directly configured constraint; fieldsets referenced in fieldsets may still supply a constraint.

fieldDefinitionslist of objectsOptional

Optional field definitions to create on the schema. Each field definition’s display name must be unique within the set using case-sensitive comparison; each field definition’s system name must be unique within the set. Each field definition’s display name must be unique among all fields on this schema (case-sensitive); unrelated schemas may reuse the same display name. The total number of link fields must not exceed the configured limit. On INTEGER and DECIMAL field definitions, numericMin and numericMax are rejected with numericMin cannot be set on field definitions for this schema type (and the analogous message for numericMax). Only link field types listed in this endpoint’s fieldDefinitions schema are accepted; other link types fail validation. Omit to create the schema with no custom fields beyond fieldsets. Also supports CreateDnaPartLinkFieldDefinitionInput, CreateTranscriptionLinkFieldDefinitionInput, and CreateTranslationLinkFieldDefinitionInput.

fieldsetslist of stringsOptional

API IDs of fieldsets to apply to the schema at creation. Optional. Fieldset-provided fields and configuration are merged into the schema.

iconIdenumOptional

Icon displayed in the UI for entities registered from this schema. Optional; when omitted, defaults to SEQUENCE.

includeRegistryIdInChipsbooleanOptional

Whether registry IDs appear in UI chips for entities of this schema. Optional; when omitted, defaults to false.

isContainablebooleanOptional

Whether entities of this schema can be placed in inventory containers. Optional; when omitted, defaults to false.

namestringOptional

The user-facing name of the schema. Must be non-empty after stripping whitespace, at most 255 characters, and unique within the organization.

systemCategorieslist of objectsOptional

Configuration for non-exclusive static schema interfaces (system categories) implemented by this schema. Optional; when omitted, no system categories are configured.

systemNamestringOptional

The SQL identifier used as the warehouse table name. If not provided, one is auto-generated from the display name. Must match the pattern [a-z_][a-z0-9_$]*, cannot be a reserved table name, cannot start with ‘bnch$’, and must be unique within the organization.

useRegistryIdForItemDisplayLabelbooleanOptional

Whether the registry ID is used as the display label for registered entities. Optional; when omitted, defaults to false.

displayNamestringOptionalDeprecated
Deprecated. Use name instead.

Response

Created
__typenamestringOptional
archiveReasonstring or nullOptional
archivedbooleanOptional
availableRegistrationNamingOptionslist of enumsOptional
constraintobject or nullOptional
Uniqueness constraint applied to entities registered from this schema. Null when no uniqueness constraint is configured.
containableTypeenumOptional
Allowed values:
containerNameTemplateobject or nullOptional
A name template for containers.
createdAtstringOptionalformat: "datetime"
descriptionstringOptional
fieldDefinitionsstringOptionalformat: "uri"
Field definitions configured on this schema.
fieldsetsstringOptionalformat: "uri"
iconIdenumOptional
Icon displayed in the UI for entities registered from this schema.
idstringOptional
includeRegistryIdInChipsbooleanOptional
itemIdPrefixstringOptional

Prefix used for registry IDs (entityRegistryId) of entities registered from this schema.

modifiedAtstringOptionalformat: "datetime"
namestringOptional
nameTemplateobject or nullOptional
A name template for entities.
organizationobjectOptional
showResiduesbooleanOptional
Controls whether DNA residues are displayed in the UI.
systemCategorieslist of objectsOptional
systemNamestringOptional
useRegistryIdForItemDisplayLabelbooleanOptional
validationRulesstringOptionalformat: "uri"

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error