Skip to content

Metafield definition constraint types

View as Markdown

A Metafield definition constraint type is one kind of constraint - category, channel, category_channel. Constraints narrow where a Metafield definition applies. This is a read-only reference resource.

Constraints depend on the definition’s owner type, not its data type - and today only the products owner type allows any. The authoritative per-owner-type list is the allowedConstraints field on Metafield owner types (see Type compatibility).

The Metafield definition constraint type object

Section titled “The Metafield definition constraint type object”
PropertyTypeRequiredDescription
idstring-The constraint type identifier (e.g. category).
descriptionstring-A human-readable description of the constraint type.

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.