Skip to navigation

Create ProteinSchema

Create ProteinSchema.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
chainLinkedSchemaslist of objectsRequired
Schema mappings for chain labels in the protein format.
descriptionstringRequired

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

domainLinkedSchemaslist of objectsRequired
Schema mappings for each domain label in the protein format.
formatIdstringRequired
API ID of the protein format that defines the protein schema structure.
itemIdPrefixstringRequired
organizationIdstringRequired
The API ID of the organization this schema belongs to. The organization must exist and be accessible to the caller.
availableRegistrationNamingOptionslist of enumsOptional
constraintobjectOptional

A uniqueness constraint: registered proteins of this schema must have unique values across the fields named in fieldDefinitionNames. Each name must be the display name of a field on this schema or one of its fieldsets; at least 1 and at most 100 names, with no duplicates, computed fields or archived fields. Requires the registry to use strict validation, and is not allowed when a fieldset on the schema already defines a constraint.

fieldDefinitionslist of objectsOptional
Optional schema field definitions to create on the protein schema.
fieldsetslist of stringsOptional
iconIdenumOptional

Icon displayed in the UI for entities registered from this schema. Optional; when omitted, defaults to ANTIBODY. Supported values: ANTIBODY (antibody icon), BASIC_FOLDER_ITEM (generic folder item).

Allowed values:
includeRegistryIdInChipsbooleanOptional
isContainablebooleanOptional
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
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
displayNamestringOptionalDeprecated
Deprecated. Use name instead.

Response

Created
__typenamestringOptional
archiveReasonstring or nullOptional
archivedbooleanOptional
availableRegistrationNamingOptionslist of enumsOptional
chainLinkedSchemaslist of objectsOptional
Schema or interface links for each chain label in the protein format.
constraintobject or nullOptional

Defines uniqueness requirements for entities within a schema. Constraints ensure that registered entities have unique values across specified fields (see fieldDefinitionNames) or unique domain-specific properties (see TypeSpecificConstraint). The hasUniqueResidues field is a legacy indicator for sequence uniqueness.

containableTypeenumOptional
Allowed values:
containerNameTemplateobject or nullOptional
A name template for containers.
createdAtstringOptionalformat: "datetime"
descriptionstringOptional
domainLinkedSchemaslist of objectsOptional
Schema or interface links for each domain in the protein format, identified by the domain's label.
fieldDefinitionsstringOptionalformat: "uri"
fieldsetsstringOptionalformat: "uri"
formatobjectOptional

The protein format that defines the structure (domains, chains, interactions) for entities of this schema.

iconIdenumOptional

Icon displayed in the UI for entities registered from this schema. Supported values: ANTIBODY (antibody icon), BASIC_FOLDER_ITEM (generic folder item).

Allowed values:
idstringOptional
includeRegistryIdInChipsbooleanOptional
itemIdPrefixstringOptional
modifiedAtstringOptionalformat: "datetime"
namestringOptional
nameTemplateobject or nullOptional
A name template for entities.
organizationobjectOptional
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