Skip to main content
Anchor to MetafieldAccessGrantPayload

MetafieldAccessGrantPayload

payload

Return type for the metafieldAccessGrant mutation.

•[UserError!]!
non-null

List of errors that occured while executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Share a Metafield Primitive with a Client or Namespace. Requires the 'share_metafield' client scope and requires that the Client making the request has Admin permission on the Resource.

Arguments

•CustomDataAccessInput!
required

Update the default permission of the resource and/or provide a list of targets to give access to the resource.

•CustomDataKeyPairInput!
required

Key and namespace pair that together form the path to the resource. Key is required, Namespace defaults to the Client's implicit, reserved namespace if not provided.

•String

Use 'key' to provide a new key for the target when sharing, if desired. Only changes the key for the newly shared resource within the grantee's reserved namespace, not the grantor's.



Was this section helpful?