Mixin Schemas
Create schemas for custom mixin properties.
The Mixin Schemas section allows extending entities in Management Dashboard, for example a product, with customized fields of different types.
To keep shared mixin values and override selected values for individual sites on products or custom instances, see Site-aware mixins.

Creating a mixin schema
There are two ways to define a new schema in Management Dashboard:
defining a schema manually
uploading a JSON file
Defining a schema manually
Choose the entity
Select an entity or multiple entities that you want to customize from the dropdown menu and enter the name for the schema. You can also provide a key value for your new schema, which then works as its unique identifier. If you don't provide the key value on your own, it's generated automatically.

Define mixin fields
Go to Fields tab and choose + icon to add a mixin field.
Type – Select a field type relevant to its purpose.
Key – Define the name of the field.
Name – Provide the display name and its translations in the desired languages.
Description – Enter the field description.
Array Type (only for the Array type) – Choose the relevant type of values in an array.
Values (only for Enum type) – Define the default values for the field. Confirm each value with the Enter key.
Reference Type (only for Reference type and Reference in Array Type, and only in mixin schemas for Custom Entities) – Select the entity you want to establish a reference to.
Precision (only for the Decimal type) – Define the allowed decimal step for field values. Use values such as
0.1,0.01,0.001, and further steps of the form10^-n(for example0.0001). If you do not set a precision for a decimal field, the default step0.01is applied. Choose a finer step for measurements, conversion factors, or other precision-sensitive values;0.01is typically suitable for prices and similar monetary amounts.No precision (only for the Decimal type) – Enable this option to accept decimal values without a step constraint. When enabled, the Precision field is disabled. Use this when stored values must not be restricted to a fixed decimal increment.
Provide relevant configuration in Settings:
Localized (only for Text or Object type) – Enable per-language values. Localized objects require localization schema version
v2.ReadOnly – Decide whether the field is non-editable.
Required (except for Boolean type) – Decide whether the field is mandatory.
Nullable – Decide whether the field can accept
nullvalues.Array Localized (only for Text or Object in Array Type) – Enable per-language values for array items. Localized objects require localization schema version
v2.Array Values (only for Enum in Array Type) – Define the default values for the field. Confirm each value with the Enter key.



Save the schema
When you're done with defining mixin schema fields, confirm schema creation with Save. This action generates the schema for a particular entity or entities. You can already view the schema details in the Management Dashboard. If you need the JSON schema file, choose Open Generated JSON to access it.

Result: The new schema is in use. It means that if, for example, you've created a schema called Size for a product entity, next time you create or edit a product, the new fields are available in a Size tab.

The schemas of object type display the defined objects as nested within a hierarchical structure:

The schemas of array of objects type also allow for adding objects with the defined fields:

Localizing text and object fields
Use localized fields when text or structured mixin content must vary by language.
The tenant system preference languageSchemaVersion controls the localized field types available in the mixin editor. The predefined Language schema version setting offers v1 and v2, with v1 as the default.
To enable localized objects:
Open System Preferences
In Management Dashboard, go to Settings → System Preferences.
Changes to System Preferences can take up to five minutes to take effect. Wait for the change to apply before you configure localized Object fields.
The following field types support localization:
v1– Text fields and arrays of Textv2– Text or Object fields and arrays of Text or Object
A localized Object as a whole has one value per language. Its nested fields are plain fields and cannot have their own localization settings. A plain Object, however, can contain nested localized Text or Object fields. Management Dashboard prevents you from creating a localized object with an Array anywhere inside it because these values cannot be edited in the entity form.
Example for creating the localized object values:
Enter and save the values
A localized object appears as a full-width section with a Localized object badge. A localized object appears as a full-width section with a Localized object badge. For an array of localized objects, one language switcher controls all rows, and you can add, remove, or collapse rows. Enter the values under each language tab, then select Save.

The content language is the language selected in the Management Dashboard header. It appears first in localized-object language tabs, followed by the other configured languages. Languages found only in existing values appear after the configured languages and remain editable.
The schema permits a nullable localized object to be null as a whole. Management Dashboard has no dedicated control for clearing the whole object. An existing whole-object null remains until you enter a value for a language. Clear language affects only the active language. For a nullable localized object, it keeps that language with a null value. For a non-nullable localized object, it removes the language entry.
Uploading a JSON file
Upload a JSON file when you already have a schema definition and want to use it as the starting point for a new mixin schema.
Result: The new schema is available for its assigned entity types. For example, a product schema adds a tab named after the schema when you create or edit a product.
Editing mixin schemas
Management Dashboard presents the version choice only when you open an entity and does not provide a bulk list of affected entities, so track affected entities individually before migration.
No manual JSON editing is required in Management Dashboard. To migrate an entity:
Result: A new schema version is created. New entities use it automatically. Existing entities with saved values keep their current version until you review and apply the update.
Mixin schema versioning
When you edit a mixin schema that is already assigned to an entity, your changes become visible in the entity view.
For example, suppose you have a custom instance schema for mobile phones. If you add fields or modify field types, Management Dashboard presents those changes for review when you open an instance that has values saved against the older version.
When a mixin schema is used in an entity, an indicator in the view displays the mixin schema version number.
Each time you update the mixin schema and open the entity that uses it, you can see which fields were added or modified. For instance, in the mobile phone instance schema below, the newly added and updated fields are highlighted accordingly - blue for new, yellow for the changed ones.

In this view, you can compare the current mixin schema version with the new one. You can either keep the old version, or decide to use the new one.

New fields and updates are highlighted when the entity has mixin values saved against an older schema version. You can keep the current version or apply the new one. If the entity has no saved values for that schema, it uses the latest version automatically without displaying a preview:

If you need a more detailed, technical comparison of all your changes, choose the Technical button. This opens a side-by-side comparison of the current and updated schemas in a JSON format. At the top, you can see a list of differences showing the unique keys of the newly added fields. The format of these keys depends on whether they were custom-defined or auto-generated.

See other examples for Product and Customer entities:


Site-aware mixins
Site-aware mixins let a product or custom instance keep shared mixin values and override selected values for individual sites. Use them when the same entity is available across sites but some attributes differ by market or storefront.
In Management Dashboard, mark the mixin schema as Site aware, then maintain its Default values and site-specific overrides on the product or custom instance.
Site-aware mixins are useful in the following situations:
The same product or custom instance is sold or used across multiple sites.
Most mixin attributes are shared, and only some values must differ by site.
API clients need one merged set of values for the requested site.
If every attribute is the same on all sites, a standard mixin schema is enough.
Creating a site-aware mixin schema
Define fields and save
On the Fields tab, add the attributes you need, then select Save. Field setup follows the same rules as a standard mixin schema. See Creating a mixin schema.
Saving changes to an existing schema creates a new version. Apply the new version to products or custom instances as described in Mixin schema versioning.
Result: Products or custom instances that use the schema show a site context panel on the mixin tab.
You can also enable Site aware when you upload a JSON schema file. Follow Uploading a JSON file and choose Site aware before you confirm the upload.
Setting default and site-specific values
The following example uses a site-aware Vehicle search attributes schema on a vehicle instance.

Result: The product or custom instance keeps shared Default values and optional overrides. API clients that request the entity with a site context receive the combined values for that site.
How site context works
Use the site context panel to choose which values you are editing.
The panel includes the following contexts:
Default – shared mixin values for all sites
Site – each site configured for your tenant, shown with the site name when available, otherwise the site code
Removed site – after you delete a site from the tenant, its context stays on the product or custom instance for as long as site-specific mixin values remain stored for that site code
Switching between Default and sites does not save by itself. Unsaved work stays in the form until you choose Save or Discard.
Displaying mixins in entity list view
You can add a mixin field as a column in the list view of a selected entity. The mixin field can serve as a filter so that you can find the items of your interest.
Choose the mixins
In the Mixins section, look for the mixin fields you want to add as filter columns. Or, choose Add custom mixin to add a new mixin field.

The selected mixin fields appear in the orchestration panel, where you can enable or edit them.

Unassigning a schema
If you no longer want to apply the latest version of a schema to an entity, you can unassign it.
Result: The particular entity uses the previous version of the schema that exists in the database. If you had only one schema version and you unassign it from an entity, the schema tab is no longer visible when you create or edit objects of that type.
Last updated
Was this helpful?












