Skip to navigation

Update MixtureSchema

Beta
Update MixtureSchema.

Authentication

AuthorizationBearer

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

Path parameters

mixture_schema_idstringRequired
ID of the MixtureSchema.

Headers

EARLY-ACCESSstringOptional

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

Request

This endpoint expects an object.
allowMeasuredIngredientsbooleanOptional
Whether mixtures of this schema record measured ingredient amounts in addition to target amounts. When true, componentLotTextEnabled and componentLotStorageEnabled must both be set and at least one of them must be true. When false, both must be null. Omit to keep the current value. The rule applies to the values after the update. Setting this to false clears any component lot option not included in the request.
archiveReasonstringOptional

Why it is being archived. Required when archived is true, and not allowed when unarchiving.

archivedbooleanOptional

Set to true to archive or false to unarchive it. Archiving requires archiveReason.

availableRegistrationNamingOptionslist of enumsOptional
componentLotStorageEnabledboolean or nullOptional
Whether ingredients can record their component lot as a container or entity from inventory. Only applies when allowMeasuredIngredients is true. Omit to keep the current value, except when the same request sets allowMeasuredIngredients to false, which clears it. Cannot be true or false while allowMeasuredIngredients is false.
componentLotTextEnabledboolean or nullOptional
Whether ingredients can record their component lot as a text value. Only applies when allowMeasuredIngredients is true. Omit to keep the current value, except when the same request sets allowMeasuredIngredients to false, which clears it. Cannot be true or false while allowMeasuredIngredients is false.
constraintobject or nullOptional

A uniqueness constraint: registered mixtures 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. Replaces the current constraint; set to null to remove it, which is not allowed when the constraint comes from a fieldset. Omit to keep the current value.

containerNameTemplateobject or nullOptional
Replaces all existing container name template parts. Legacy datetimeFormat configurations are not preserved.
descriptionstringOptional
Updated description. When provided, must be at most 1000 characters.
iconIdenumOptional
The icon shown for mixtures of this schema. Omit to keep the current value.
includeRegistryIdInChipsbooleanOptional
isContainablebooleanOptional
itemIdPrefixstringOptional
namestringOptional

Updated user-facing name. When provided, must be non-empty after stripping whitespace, at most 255 characters, and unique within the organization.

nameTemplateobject or nullOptional

Replaces all existing entity name template parts. Legacy datetimeFormat configurations are not preserved. Updating the name template does not automatically modify availableRegistrationNamingOptions — update that field separately if needed.

systemCategorieslist of objectsOptional
systemNamestringOptional

Updated SQL identifier for the warehouse table name. When provided, 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. Changing it requires warehouse table-name changes to be enabled for the caller; otherwise the update fails with a validation error. Supplying the schema’s exact current system name always succeeds.

useRegistryIdForItemDisplayLabelbooleanOptional
displayNamestringOptionalDeprecated
Deprecated. Use name instead.

Response

OK
__typenamestringOptional
allowMeasuredIngredientsbooleanOptional
Whether this mixture schema allows recording measured values for ingredients. When enabled, users can track actual measured amounts in addition to target amounts.
archiveReasonstring or nullOptional
archivedbooleanOptional
availableRegistrationNamingOptionslist of enumsOptional
componentLotStorageEnabledboolean or nullOptional

Whether mixture ingredients can specify their component lot as a container and/or entity from inventory. Only applicable when allowMeasuredIngredients is true. Will be null when allowMeasuredIngredients is false.

componentLotTextEnabledboolean or nullOptional
Whether mixture ingredients can specify their component lot as a text value. Only applicable when allowMeasuredIngredients is true. Will be null when allowMeasuredIngredients is false.
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.
createdAtstring or nullOptionalformat: "datetime"
descriptionstringOptional
fieldDefinitionsstringOptionalformat: "uri"
fieldsetsstringOptionalformat: "uri"
iconIdenumOptional
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