Create Metafield Definition

Create a new metafield definition.

Path Params
string
required

The owner resource of the metafield definition. Available resources: shop, product, product_image, product_variant, order, page, customer, collection, blog, article.

Body Params
string
required

Namespace to group metafield definitions.

string
required

Unique key to identify the metafield.

string

Brief description of the metafield definition.

string
required

Field type for the metafield. Valid Values for type:

  • date - date_time - weight - volume - dimension - integer - number_decimal - file_reference - single_line_text_field - multi_line_text_field - json - color - rating - url - boolean
string
required

Name of the metafield definition.

Response

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json