--- title: metafieldStorefrontVisibilityCreate - GraphQL Admin description: >- Creates a `MetafieldStorefrontVisibility` record to make all metafields that belong to the specified resource and have the established `namespace` and `key` combination visible in the Storefront API. api_version: 2024-10 api_name: admin type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/metafieldStorefrontVisibilityCreate md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/metafieldStorefrontVisibilityCreate.txt --- # metafield​Storefront​Visibility​Create mutation Requires API client to have access to the owner type and namespace. Deprecated. This mutation will be removed in 2025-01. Use the [metafieldDefinitionCreate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionCreate) or [metafieldDefinitionUpdate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/metafieldDefinitionUpdate) mutations with [access.storefront](https://shopify.dev/docs/api/admin-graphql/latest/mutations/access.storefront) set instead. Creates a `MetafieldStorefrontVisibility` record to make all metafields that belong to the specified resource and have the established `namespace` and `key` combination visible in the Storefront API. ## Arguments * input [Metafield​Storefront​Visibility​Input!](https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/MetafieldStorefrontVisibilityInput) required Specifies the input fields for a `MetafieldStorefrontVisibility` record. *** ## Metafield​Storefront​Visibility​Create​Payload returns * metafield​Storefront​Visibility [Metafield​Storefront​Visibility](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/MetafieldStorefrontVisibility) The `MetafieldStorefrontVisibility` that was created. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### metafieldStorefrontVisibilityCreate reference ## Mutation Reference ```graphql mutation metafieldStorefrontVisibilityCreate($input: MetafieldStorefrontVisibilityInput!) { metafieldStorefrontVisibilityCreate(input: $input) { metafieldStorefrontVisibility { # MetafieldStorefrontVisibility fields } userErrors { field message } } } ``` ## Input ```json { "input": { "namespace": "", "key": "", "ownerType": "API_PERMISSION" } } ```