Skip to main content

Adding unique values to metafields

As of 2025-01 Admin API, you can now make metafield definitions that enforce uniqueness.

The new uniqueValues capability ensures that each metafield has a unique value across all resources. This is available for single_line_text_field, number_integer, url, and id. For now, this capability can only be set on metafield definitions that don’t yet have associated metafields.

Was this section helpful?