The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Metafields are a flexible way to attach additional information to a Shopify resource (e.g. Product, Collection, etc.). Some examples of data stored using metafields include specifications, size charts, downloadable documents, release dates, images, or part numbers. Metafields are identified by an owner resource, a namespace, and a key and they store a value along with type information for that context.
Resources that can have metafields
Required when updating a metafield, but should not be included when creating as it's created automatically.
Must be 3-64 characters long and can contain alphanumeric, hyphen, and underscore characters.
Must be 3-255 characters long and can contain alphanumeric, hyphen, and underscore characters.
value
and type
.