Skip to main content
object

A MetafieldNamespace is a Permissible type. It is managed by a Client and defines a group of Custom Data primitives and permissions. Control and access of a MetafieldNamespace is determined by AccessGrants that link the Namespace to Clients or other Namespaces.

•CustomDataAccessType

List of the active policies associated with this Namespace. Policies represent ownership of the Namespace and can be granted to Clients and other Namespaces.

•String

Developer facing description.

•String!
non-null

Developer facing identifier for the resource.

•String

Developer facing display name.

•String

Developer facing path to identifier for the resource.

•ID!
non-null

Internal identifier for the resource.


Was this section helpful?

•mutation

Create a new MetafieldNamespace.

Every client has their own implicit, reserved namespace; however, Namespaces allow sharing groups of Metafield Primitives and Access Grants together. Creating new Namespaces requires the client to have additional scope and is not available to all clients.

Arguments

•MetafieldNamespaceCreateInput!
required

•mutation

Destroy a Namespace and remove any shared Access. MetafieldDefinitions shared to the Namespace will not be deleted, but their association with the namespace will be removed.

Arguments

•CustomDataKeyPairInput!
required

This argument accepts an object that consists of a key and an optional namespace. The key is a mandatory attribute that represents a specific element within a namespace. The namespace attribute, if provided, should be a period-delimited string representing the hierarchical path to the desired namespace. This is applicable in cases where the desired namespace is nested within other namespaces. In the absence of a provided namespace, the system will default to the client's implicit, reserved namespace.


•mutation

Update a MetafieldNamespace by changing its key, name, description, capabilities, or access.

Arguments

•MetafieldNamespaceUpdateInput!
required


Was this section helpful?


Was this section helpful?