Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to standardMetafieldDefinitionEnable

standardMetafieldDefinitionEnable

mutation

Requires API client to have access to the resource type associated with the metafield definition owner type.

Activates the specified standard metafield definition from its template.

Refer to the list of standard metafield definition templates.

The ID of the standard metafield definition template to enable.

The key of the standard metafield to enable. Used in combination with namespace.

The namespace of the standard metafield to enable. Used in combination with key.

The resource type that the metafield definition is scoped to.

Boolean!requiredDefault:false

Whether to pin the metafield definition.

Anchor to useAsCollectionConditionuseAsCollectionCondition
BooleanDefault:false

Whether the metafield definition can be used as a collection condition.

Anchor to visibleToStorefrontApivisibleToStorefrontApi
BooleanDefault:null

Whether metafields for the definition are visible using the Storefront API.


Was this section helpful?

Anchor to StandardMetafieldDefinitionEnablePayload returnsStandardMetafieldDefinitionEnablePayload returns

The metafield definition that was created.

The list of errors that occurred from executing the mutation.


Was this section helpful?