API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04 Unsupported
API version: 2020-01 Unsupported

metafieldStorefrontVisibilityCreate mutation

Version unstable

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2021-07 (Release candidate)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2021-04 (Latest)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2021-01

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2020-10

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2020-07

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2020-04 (Unsupported)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2020-01 (Unsupported)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2019-10 (Unsupported)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2019-07 (Unsupported)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields

Version 2019-04 (Unsupported)

Makes a Metafield with a specific namespace and key visible to the storefront API.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( MetafieldStorefrontVisibilityInput! ) required

Specifies the input fields for the visibility.

MetafieldStorefrontVisibilityInput fields

  • key (String!) Required

    The key of the metafield to be visible to the storefront api.

  • namespace (String!) Required

    The namespace of the metafield to be visible to the storefront api.

  • ownerType (MetafieldOwnerType!) Required

    The core resource ( e.g.: Product ) that owns this metafield.

Return fields