EnableStandardMetafieldDefinition
Activates a standard metafield definition from a predefined template for consistent data structuring.
Input
| Name | Type | Description |
| Id | String | The unique identifier of the standard metafield definition template to activate within the store. |
| Namespace | String | The namespace grouping for the standard metafield being enabled. Combined with Key to form a unique metafield identifier. |
| Key | String | The specific key that identifies the metafield within its namespace. Combined with Namespace to determine the exact metafield to enable. |
| OwnerType | String | Specifies which Shopify resource type (such as product, collection, or order) the metafield definition applies to. |
| UseAsCollectionCondition | Boolean | Indicates whether this metafield definition can be used as a filter condition when building automated collections. |
| Pin | Boolean | Determines whether the metafield definition should be pinned for easy access in the admin interface. |
| AccessAdmin | String | Defines the level of visibility and access to the metafields under this definition in the Shopify Admin API. |
| AccessCustomerAccount | String | Defines how metafields under this definition can be accessed through the Customer Account API. |
| AccessStorefront | String | Specifies whether and how metafields under this definition can be accessed via the Storefront API. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Returns true if the standard metafield definition was successfully enabled, otherwise false. |
| Details | String | Provides additional diagnostic or informational details about the execution of the enable operation. |
| Id | String | A globally unique identifier assigned to the enabled standard metafield definition. |