Retrieves the collection of MetafieldDefinition resources.
Returns a paginated collection of metafield definitions in the current organization. Filter by ownerType to see the custom fields defined for a given resource.
Query parameters
Name
Type
Required
Description
page
integer
-
The collection page number
itemsPerPage
integer
-
The number of items per page
properties[]
string[]
-
Allows you to reduce the response to contain only the properties you need. If your desired property is nested, you can address it using nested arrays. Example: properties[]={propertyName}&properties[]={anotherPropertyName}&properties[{nestedPropertyParent}][]={nestedProperty}
id[]
string[]
-
Only the items with one of these ids, each a UUID or the item IRI.
ownerType
string
-
MetafieldDefinition ownerType
ownerType[]
string[]
-
MetafieldDefinition ownerType
type
string
-
MetafieldDefinition type
type[]
string[]
-
MetafieldDefinition type
name
string
-
MetafieldDefinition name
name[]
string[]
-
MetafieldDefinition name
order[name]
string
-
MetafieldDefinition order[name]
order[createdAt]
string
-
MetafieldDefinition order[createdAt]
order[updatedAt]
string
-
MetafieldDefinition order[updatedAt]
Response
200 - MetafieldDefinition collection
Property
Type
Required
Description
search
object
-
Show search fields
Property
Type
Required
Description
@type
string
-
mapping
object[]
-
Show mapping fields
Property
Type
Required
Description
@type
string
-
property
string | null
-
required
boolean
-
variable
string
-
template
string
-
variableRepresentation
string
-
totalItems
integer
-
view
object
-
Show view fields
Property
Type
Required
Description
@id
string
-
@type
string
-
first
string | null
-
last
string | null
-
next
string | null
-
previous
string | null
-
member
MetafieldDefinition[]
required
Show member fields
Property
Type
Required
Description
@context
string | object
-
@id
string
required
@type
string
required
constraints
EmbeddedMetafieldDefinitionConstraintResource[]
-
The constraint rules scoping where this metafield definition applies (e.g. by category or channel).