Skip to content

Metafield owner types

View as Markdown

A Metafield owner type is one of the resource types a Metafield definition can be attached to - products, variants, and so on. This is a read-only reference resource: you list the owner types to discover the valid values for a definition’s ownerType.

Each owner type also reports its allowedConstraints - the constraint types you may attach to a definition with that ownerType. Constraints depend on the owner type, not on the data type, so this resource is the authoritative source for constraint compatibility (see Type compatibility). Today only products allows constraints; other owner types return an empty list.

PropertyTypeRequiredDescription
idstring-The metafield owner type identifier (e.g. products).
descriptionstring-A human-readable description of the metafield owner type.
allowedConstraintsstring[]-The constraint types that can be applied to a metafield definition whose ownerType is this owner type. Owner types that allow none return an empty array.

All requests require an OAuth 2.0 bearer token and the organization scope header:

Authorization: Bearer <token>
X-Flowkiwi-Organization-Id: <organization-id>

This resource is read-only - it has no create, update or delete operations.