---
title: MetafieldDefinitionCreateInput - Shop Partners API
description: Set of inputs to the metafieldDefinitionCreate Mutation.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/input-objects/MetafieldDefinitionCreateInput
  md: https://shopify.dev/docs/api/shop-partners/latest/input-objects/MetafieldDefinitionCreateInput.md
---

# Metafield​Definition​Create​Input

input\_object

Set of inputs to the metafieldDefinitionCreate Mutation.

## Fields

* access

  [Custom​Data​Access​Input](https://shopify.dev/docs/api/shop-partners/latest/input-objects/CustomDataAccessInput)

  Optional AccessGrants can be created along with the definition. Sharing requires additional client scope and is not available to all clients.

* description

  [String!](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  non-null

  Human friendly description of the Definition.

* key

  [String!](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  non-null

  Identifier for the Definition.

* name

  [String!](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  non-null

  Human friendly display name.

* namespace

  [String](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  Optional, existing Namespace to share, with READ access, the new Definition with.

* type

  [String!](https://shopify.dev/docs/api/shop-partners/latest/scalars/String)

  non-null

  Type of the data described by the Definition.

* validations

  [\[Custom​Data​Metafield​Definition​Validation​Input!\]](https://shopify.dev/docs/api/shop-partners/latest/input-objects/CustomDataMetafieldDefinitionValidationInput)

  Optional validations on the value in a field. Changes will be enforced upon the next use of metafieldSet for this definition on a given user.

***

## Mutations using this input

* [metafield​Definition​Create.definition](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldDefinitionCreate#arguments-definition)

  ARGUMENT

***

## Map

### Mutations using this input

* [metafield​Definition​Create.definition](https://shopify.dev/docs/api/shop-partners/latest/mutations/metafieldDefinitionCreate#arguments-definition)