Skip to main content

Metaobject Definition Fields

Templates that define the structure and behavior of metaobjects in Shopify

Sample File

This sample file shows the basic columns that you need to set in order to import metaobject definitions to Shopify.

Once your definitions are in place, Altera can generate an entries import template pre-filled with your store's own metaobject definitions and example values. See the metaobject import template guide.

Notes

Shopify-Managed Definitions

Shopify manages certain metaobject definitions internally (type names starting with shopify--). These are included in exports by default and fall into two categories for import:

Product Category Definitions

Product category metaobject definitions like shopify--color-pattern, shopify--material, or shopify--style are part of Shopify's Product Taxonomy. While these cannot be created or modified, Altera can enable them on your store during import. This is useful when migrating products between stores that use category attributes.

When you import a product category metaobject definition, Altera will enable it if it's not already enabled, or skip it if it already exists. This also happens automatically when importing products with category metafields.

Other Shopify-Managed Definitions (cannot be imported)

Other Shopify-managed definitions cannot be created, updated, or modified through the API. Attempting to import them will result in error MOBD005.

What you can import:

  • Custom metaobject definitions (those not managed by Shopify)

  • Product category metaobject definitions (will be enabled, not created)

How rows find their definition

Each field of a definition has one row. Rows belong together when they have the same ID, or else the same Type, or else the same Name. A row where all three are blank continues the definition above it. Put each field on one row, and put the values of the definition, such as Description and the Option columns, in the first row. Other rows can repeat them or leave them blank. Spaces around identifiers and types are ignored.

Altera looks for an existing definition by ID, then Type, then Name, not case sensitive. If more than one definition has the name, the row fails with MOBD015.

Altera also imports the older format, which has Capability: columns and one row per validation. See Older format.

General

ID

Description

Example Value

Unique metaobject definition identifier

123456789

Shopify's identifier for the definition. Leave it blank for a new definition. An ID from another store is ignored, so a file can move between stores. If the ID belongs to a definition in this store with another Type, the row fails.

Type

Description

Example Value

The type of the definition - Create only

product_feature

Required for a new definition. Shopify keeps types in lowercase, so any case finds the same definition.

Command

Description

Example Value

Import action

MERGE

  • MERGE: Update the definition, or create it if it doesn't exist. Fields that aren't in the file stay

  • UPDATE: Update the definition. The row fails if it doesn't exist

  • NEW: Create the definition. The row fails if it exists

  • REPLACE: Delete the definition and create it again. A definition with entries can't be replaced. See MOBD010 for what this removes

  • DELETE: Delete the definition. See MOBD009 for what this removes

  • IGNORE: Skip the rows

A blank cell means MERGE.

Name

Description

Example Value

Metaobject definition name

Product Feature

A blank cell keeps the current name. When Name is the only way the rows find their definition, it doesn't rename the definition.

Description

Description

Example Value

Metaobject definition description

Features of a product

A blank cell on the first row of a definition removes the description. A column that isn't in the file keeps it.

Updated At

Description

Example Value

When the definition last changed - Export only

2026-11-02 11:03:00 -0500

Altera ignores this column on import.

Usage Count

Description

Example Value

Number of entries - Export only

12

Altera ignores this column on import.

Top Row

Description

Example Value

Marks the first row of a definition - Export only

true

Altera ignores this column on import when other columns identify the definition.

Row

Description

Example Value

Row number in the export - Export only

1

Altera ignores this column on import.

Options

These columns repeat on every row of a definition in an export. Altera reads the first row.

Option: Access to Storefront API

Description

Example Value

Storefront API access

Public Read

  • Public Read: Storefronts can read the entries

  • None: Storefronts can't read the entries

A blank cell leaves the setting as it is.

Option: Access to Customer Account API

Description

Example Value

Customer Account API access

Read

  • Read: Customer accounts can read the entries

  • None: Customer accounts can't read the entries

A blank cell leaves the setting as it is.

Option: Access to Admin API

Description

Example Value

Admin API access - Export only

Public Read Write

Altera ignores this column on import.

Option: Publishable

Description

Example Value

Entries have an active or draft status

TRUE

  • TRUE: On

  • FALSE: Off

A blank cell leaves the setting as it is.

Option: Translatable

Description

Example Value

Entries can be translated

TRUE

  • TRUE: On

  • FALSE: Off

A blank cell leaves the setting as it is.

Option: Online Store URL Handle

Description

Example Value

URL handle of the entries as web pages

product-features

A value publishes the entries as web pages. A blank cell turns this off, and a column that isn't in the file keeps it.

Option: Renderable

Description

Example Value

Entries have SEO data for web pages

TRUE

  • TRUE: On

  • FALSE: Off

A blank cell leaves the setting as it is.

Option: Renderable Meta Title Field

Description

Example Value

Field to use as the SEO title

title

Must be one of the Field: Key values. A blank cell leaves the setting as it is.

Option: Renderable Meta Description Field

Description

Example Value

Field to use as the SEO description

summary

Must be one of the Field: Key values. A blank cell leaves the setting as it is.

Option: Field for Display Name

Description

Example Value

Field to use as the display name of entries

title

Must be one of the Field: Key values. A blank cell removes the setting, and a column that isn't in the file keeps it.

Fields

Field: Position

Description

Example Value

Position of the field - Export only

1

Altera ignores this column on import.

Field: Key

Description

Example Value

Unique key of the field

title

From 2 to 64 characters. A key that isn't on the definition adds a new field.

Field: Name

Description

Example Value

Display name of the field

Title

A blank cell keeps the current name.

Field: Description

Description

Example Value

Description of the field

The main heading

A blank cell removes the description, and a column that isn't in the file keeps it.

Field: Type

Description

Example Value

The field type

single_line_text_field

Required for a new field. Shopify can't change the type of an existing field, so a different value fails all rows of the definition with MOBD017.

Field: Required

Description

Example Value

Entries must have a value

TRUE

  • TRUE: On

  • FALSE: Off

A blank cell leaves the setting as it is.

Field: Filterable

Description

Example Value

Filter entries by this field in the admin

TRUE

  • TRUE: On

  • FALSE: Off

A blank cell leaves the setting as it is. Shopify doesn't allow this on every type, such as json.

Field Validations

Field Validation: Min

Description

Example Value

Lowest allowed value

1

Use a number, a date, or a date and time, depending on the type. For a weight, volume, or dimension, enter a value and unit, such as 1 kg or 500 ml. Volume units are ml, cl, L, m3, us_oz, us_pt, us_qt, us_gal, and the imperial oz, pt, qt, and gal. For a rating, this is the start of the scale. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Max

Description

Example Value

Highest allowed value

100

Use the same format as Min. For a text type, this is the longest allowed length. For a rating, this is the end of the scale. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Precision

Description

Example Value

Maximum number of decimal places

2

Applies to number_decimal. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Regex

Description

Example Value

Regular expression that a value must match

^[a-z]+$

Applies to text types. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Choices

Description

Example Value

Allowed values, separated by commas

Small, Medium

Write \, for a comma inside a value, such as Small\, tall, Medium. A JSON array also works on import. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Allowed Domains

Description

Example Value

Allowed URL domains, separated by commas

example.com, example.org

Applies to url. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: File Types

Description

Example Value

Allowed file types, separated by commas

Image, Video

Accepted values are Image, Video, GenericFile, Model3d, and Model3dEnvironmentImage. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: List Min

Description

Example Value

Fewest values in a list

1

Applies to list. types. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: List Max

Description

Example Value

Most values in a list

5

Applies to list. types. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Metaobject Definitions

Description

Example Value

Metaobject definition types that a reference can point to

features

Use the type, not the ID, so the file works on other stores. A mixed reference can have more than one, separated by commas. The target can be in the same file. A blank cell keeps the current target, and Shopify can't change the target of an existing definition.

Field Validation: JSON Schema

Description

Example Value

JSON schema that a value must match

{"type":"object"}

Applies to json. A blank cell removes this validation, and a column that isn't in the file keeps it.

Field Validation: Product Taxonomy Attribute

Description

Example Value

Taxonomy attribute of a taxonomy reference

target-gender

Applies to product_taxonomy_value_reference. A blank cell removes this validation, and a column that isn't in the file keeps it.

Reference errors

A reference to a type that isn't in the store or the file fails the whole definition with MOBD011. A definition that the same import created is removed again, and definitions that reference it fail too.

Older format

A sheet with any column from this section and no column from the sections above uses the older format. It has one row per validation, a blank cell doesn't clear a value, and a MERGE deletes fields that aren't in the file. Saved exports that use these columns keep them. If a sheet has columns of both formats, Altera ignores the older columns and adds MOBD016.

Metaobject Count

Description

Example Value

Number of metaobjects using this definition (Export-only)

3

The total number of metaobjects that have been created using this definition. This field is export-only and cannot be imported.

Access: Storefront API

Description

Example Value

Storefront API access level

PUBLIC_READ

Controls how the metaobjects can be accessed via the Storefront API:

  • PUBLIC_READ: Publicly readable via Storefront API

  • PRIVATE: Private access only, not available via Storefront API

Access: Admin API

Description

Example Value

Admin API access level

PUBLIC_READ_WRITE

Controls how the metaobjects can be accessed via the Admin API:

  • MERCHANT_READ: Merchant read access only

  • MERCHANT_READ_WRITE: Merchant read and write access

  • PUBLIC_READ_WRITE: Public read and write access

Capability: Active-draft status

Description

Example Value

Whether metaobjects can have active/draft status

TRUE

  • TRUE: Metaobjects can be saved as drafts or published as active

  • FALSE: Metaobjects are always active when created

Capability: Translations

Description

Example Value

Whether metaobjects support translations

TRUE

  • TRUE: Metaobjects can be translated into multiple languages

  • FALSE: Metaobjects do not support translations

Capability: Publish entries as web pages

Description

Example Value

Whether metaobjects can be published as web pages

FALSE

  • TRUE: Metaobjects can be published as standalone web pages with URLs

  • FALSE: Metaobjects cannot be published as web pages

Capability: Online Store URL Handle

Description

Example Value

URL handle for accessing metaobjects as web pages

faqs

The URL handle defines the path segment used when publishing metaobjects as web pages on the Online Store. For example, with a handle of faqs, metaobjects would be accessible at https://your-store.myshopify.com/pages/faqs/{entry-handle}.

On import:

  • If not provided, defaults to the metaobject definition's type

  • Can be set to a custom value to override the default

On export:

  • Displays the currently configured URL handle for the metaobject definition

Note: This field only applies when "Capability: Publish entries as web pages" is enabled.

Capability: Storefronts API access

Description

Example Value

Whether metaobjects are accessible via Storefronts API

FALSE

  • TRUE: Metaobjects are accessible via the Storefronts API

  • FALSE: Metaobjects are not accessible via the Storefronts API

Field: Display Name

Description

Example Value

Whether this field is used as the display name for metaobjects

TRUE

  • TRUE: The value of this field will be used as the display name for metaobjects

  • FALSE: This field is not used for the display name

Validation: Name

Description

Example Value

Name of the validation rule

min

The name of the validation rule being applied to a field. Common validation rules include:

  • min: Minimum value (for numbers) or length (for text)

  • max: Maximum value (for numbers) or length (for text)

  • regex: Regular expression pattern

  • file_type_options: Allowed file types (for file references)

  • choices: Predefined choices for the field

Validation: Type

Description

Example Value

Data type of the validation (Export-only)

number_integer

The data type of the validation value. This field is export-only and cannot be imported.

Validation: Value

Description

Example Value

Value used for the validation

1

The value that defines the validation rule. For example, if the validation name is "min", this would be the minimum value or length allowed.

Metaobject Definition References

For fields with metaobject_reference or mixed_reference types, validations can specify which metaobject definitions are allowed. These validations use:

  • metaobject_definition_id: References a single metaobject definition

  • metaobject_definition_ids: References multiple metaobject definitions

When exporting, Altera converts these from Shopify GIDs to type handles for cross-store compatibility:

Format

Example Value

Single definition

author

Multiple definitions

author, brand, store_location

When importing, Altera accepts both formats:

  • Type handles (recommended): author or author, brand

  • GIDs (legacy): gid://shopify/MetaobjectDefinition/123456

This enables you to export metaobject definitions from one store and import them into another store, as long as the referenced metaobject definitions exist in the destination store. If a referenced definition doesn't exist, you'll receive error MOBD006.

Export Filters

You can use these filters to limit which metaobject definitions are exported:

  • type: Filter by definition type (e.g., type=author)

  • shopify_managed: Filter by whether the definition is managed by Shopify (TRUE or FALSE)

Did this answer your question?