Metafield definition constraint types
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”| Property | Type | Required | Description |
|---|---|---|---|
id | string | - | The constraint type identifier (e.g. category). |
description | string | - | A human-readable description of the constraint type. |
Conventions
Section titled “Conventions”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.