Skip to content

List metafield definition types

View as Markdown
get /rest/api/metafield_definition_types

Retrieves the collection of MetafieldDefinitionType resources.

Returns every metafield definition type, each with the allowedValidations you may attach to a definition of that type.

Headers

NameTypeRequiredDescription
X-Flowkiwi-Organization-IdstringrequiredThe organization the request acts as. Determines the identity, permissions and ownership applied when reading or modifying data on the instance.

Response

200 - MetafieldDefinitionType collection

PropertyTypeRequiredDescription
hydra:totalItemsinteger-
hydra:searchobject-
Show hydra:search fields
PropertyTypeRequiredDescription
@typestring-
hydra:templatestring-
hydra:variableRepresentationstring-
hydra:mappingobject[]-
Show hydra:mapping fields
PropertyTypeRequiredDescription
@typestring-
variablestring-
propertystring | null-
requiredboolean-
hydra:memberMetafieldDefinitionType[]required
Show hydra:member fields
PropertyTypeRequiredDescription
@contextobject-
@idstringrequired
@typestringrequired
idstring-The metafield definition type identifier (e.g. number_decimal).
descriptionstring-A human-readable description of the metafield definition type.
examplestring | null-An example value for a metafield of this type.
allowedValidationsstring[]-The validation types that can be applied to a metafield definition of this type. Submitting any other validation is rejected. Types that allow none return an empty array.