Skip to navigation

Update BoxSchema

Beta
Update BoxSchema.

Authentication

AuthorizationBearer

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

Path parameters

box_schema_idstringRequired
ID of the BoxSchema.

Headers

EARLY-ACCESSstringOptional

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

Request

This endpoint expects an object.
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.

containerSchemaIdstring or nullOptional
The API ID of the container schema that containers stored in boxes of this schema must use. Must belong to the same organization as this schema and must not be archived. Set to null to allow containers of any schema, or omit to keep the current value. Changing it fails if existing boxes of this schema hold containers of a different schema.
descriptionstringOptional
Updated description. When provided, must be at most 1000 characters.
heightintegerOptional

The number of rows in the box grid, from 1 to 50. Cannot change while the schema is in use, such as by existing boxes (including archived ones) or by link fields on other schemas that target it.

namestringOptional

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

prefixstringOptional

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.

reasonForChangeobjectOptional

Reason for change applied to the entire request. Only relevant to tenants with Data Modifications enabled, where it may be required to update or delete items and is validated against the tenant’s configured reasons. Tenants without Data Modifications enabled can omit it; if supplied, it is not validated.

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.

widthintegerOptional

The number of columns in the box grid, from 1 to 50. Cannot change while the schema is in use, such as by existing boxes (including archived ones) or by link fields on other schemas that target it.

displayNamestringOptionalDeprecated
Deprecated. Use name instead.

Response

OK
__typenamestringOptional
archiveReasonstring or nullOptional
archivedbooleanOptional
containerSchemaobject or nullOptional
createdAtstring or nullOptionalformat: "datetime"
descriptionstringOptional
A description of the schema.
fieldDefinitionsstringOptionalformat: "uri"
heightinteger or nullOptional
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
widthinteger 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