Create Metafield

Create a new metafield

Path Params
string
required

The type of resource the metafield is attached to. Available values: shop, product, product_image, product_variant, order, page, customer, collection, blog, article

string
required

The unique ID of the resource to which the metafield is attached.

Body Params
string
required

Specify definition id for creating meta fields

string
required

A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name.

string
required

The key of the metafield

string
required

Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.

string
required

The type of the metafield. Valid values: date date_time weight volume dimension integer number_decimal file_reference single_line_text_field json multi_line_text_field color rating url boolean

string

A brief description of the metafield.

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