Articles on: Reference

Metafield Definition Fields

Metafield definitions are templates for different types of metafields in Shopify. They allow you ensure metafields across different objects, like products, are consistent and can be edited in the Shopify admin.

Metafield Definition Fields



These are all the fields you can import or export for metafield definitions in Altera.

General



FieldDescriptionExample Value
IDUnique definition identifiergid://shopify/MetafieldDefinition/123456789
NamespaceThe metafield namespace of the definition (Create-only)custom
KeyThe metafield key of the definition (Create-only)review_count
CommandAction to perform on this menuMERGE
NameMetafield definition nameReview Count
Owner TypeWhat type of object the metafield definition belongs to (Create-only)PRODUCT
DescriptionMetafield definition descriptionThis stores the total reviews for the product
Pinned: Is PinnedIf the metafield definition is pinned in the Shopify admintrue
Pinned: PositionThe definition's order in the pinned list. (Read-only)1
Type: CategoryThe category of the definitions field type. (Read-only)TEXT
Type: NameThe type of field for the metafield definitions field type (Create-only)single_line_text_field


Validations



These fields define validation rules for your metafield definitions.

FieldDescriptionExample Value
Row #Row number in the export file1
Top RowWhether this is the first row for this definitiontrue
Validation: NameName of the validationmax
Validation: TypeData type of the validation (Read-only)number_integer
Validation: ValueValue used for the validation100

Updated on: 18/03/2025