Skip to main content

Metafield Definition Fields

Updated over a week ago

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

Field

Description

Example Value

ID

Unique definition identifier

gid://shopify/MetafieldDefinition/123456789

Namespace

The metafield namespace of the definition (Create-only)

custom

Key

The metafield key of the definition (Create-only)

review_count

Command

Action to perform on this menu

MERGE

Name

Metafield definition name

Review Count

Owner Type

What type of object the metafield definition belongs to (Create-only)

PRODUCT

Description

Metafield definition description

This stores the total reviews for the product

Pinned: Is Pinned

If the metafield definition is pinned in the Shopify admin

true

Pinned: Position

The definition's order in the pinned list. (Read-only)

1

Type: Category

The category of the definitions field type. (Read-only)

TEXT

Type: Name

The 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.

Field

Description

Example Value

Row #

Row number in the export file

1

Top Row

Whether this is the first row for this definition

true

Validation: Name

Name of the validation

max

Validation: Type

Data type of the validation (Read-only)

number_integer

Validation: Value

Value used for the validation

100

Did this answer your question?