Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetafieldsSetInput
The input fields for a metafield value to set.
Signature:
export interface MetafieldsSetInput
Property | Modifiers | Type | Description |
---|---|---|---|
key | Scalars[‘String’][‘input’] | <p>The unique identifier for a metafield within its namespace.</p><p>Must be 3-64 characters long and can contain alphanumeric, hyphen, and underscore characters.</p> | |
namespace? | InputMaybe<Scalars[‘String’][‘input’]> | <p>(Optional) The container for a group of metafields that the metafield is or will be associated with. Used in tandem with key to lookup a metafield on a resource, preventing conflicts with other metafields with the same key . If omitted the app-reserved namespace will be used.</p><p>Must be 3-255 characters long and can contain alphanumeric, hyphen, and underscore characters.</p> |
|
ownerId | Scalars[‘ID’][‘input’] | The unique ID of the resource that the metafield is attached to. | |
type? | InputMaybe<Scalars[‘String’][‘input’]> | <p>(Optional) The type of data that is stored in the metafield. The type must be one of the [supported types](https://shopify.dev/apps/metafields/types).</p><p>Required when there is no corresponding definition for the given namespace , key , and owner resource type (derived from ownerId ).</p> |
|
value | Scalars[‘String’][‘input’] | The data stored in the metafield. Always stored as a string, regardless of the metafield’s type. |