Skip to navigation

Create LocationSchema

Beta
Create LocationSchema.

Authentication

AuthorizationBearer

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

Headers

EARLY-ACCESSstringOptional

Set to true to access beta operations via /api/v3.

Request

This endpoint expects an object.
descriptionstringRequired

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

organizationIdstringRequired
The API ID of the organization this schema belongs to. The organization must exist and be accessible to the caller.
prefixstringRequired

The prefix for barcodes auto-generated for inventory items of this schema. At most 32 characters of letters, digits, ’.’, ’_’ and ’-’, and cannot end in a digit. Must be unique among the box, container, location and plate schemas in the registry; the comparison is case-insensitive when the tenant has case-insensitive registry matching enabled.

fieldDefinitionslist of objectsOptional

The initial fields of this schema, in display order. Supported type values are TEXT, LONG_TEXT, INTEGER, DECIMAL, BOOLEAN, DATE, DATE_TIME, DROPDOWN (set dropdownId to the API ID of a non-archived dropdown), STORAGE_LINK, ENTRY_LINK, EQUIPMENT_LINK, ATTACHMENT_LINK, ENTITY_LINK (any entity) and the schema-specific entity links AA_SEQUENCE_LINK, CUSTOM_ENTITY_LINK, DNA_OLIGO_LINK, DNA_SEQUENCE_LINK, MIXTURE_LINK, MOLECULE_LINK, OLIGO_CONJUGATE_LINK, OLIGO_DUPLEX_LINK, PROTEIN_LINK, RNA_OLIGO_LINK and RNA_SEQUENCE_LINK. Fieldset, system category, request, result and run links are not supported, and neither are parent links (isParent) or numeric ranges (numericMin/numericMax). Field names and system names must each be unique within the schema, and the configured per-schema field and link field limits apply. To change fields after the schema is created, use set-field-definitions.

namestringOptional

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

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.

displayNamestringOptionalDeprecated
Deprecated. Use name instead.

Response

Created
__typenamestringOptional
archiveReasonstring or nullOptional
archivedbooleanOptional
createdAtstring or nullOptionalformat: "datetime"
descriptionstringOptional
A description of the schema.
fieldDefinitionsstringOptionalformat: "uri"
idstringOptional
modifiedAtstring or nullOptionalformat: "datetime"
namestringOptional
prefixstring or nullOptional
registryobject or nullOptional
systemNamestringOptional
A unique, stable identifier for this schema used for programmatic access and integrations.
typestring or nullOptional

Errors

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