Create a custom field definition
Required scope: write_settings (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
Custom field type token (short_text, long_text, rich_text, number, …). An extension type that has no token is named by its registered class instead.
"short_text"
Shorthand of the resource the field attaches to, from the resource types endpoint.
"product"
Defaults to custom.
Human-readable name; defaults to the titleized key.
When false, the definition is admin-only and never exposed in the Store API.
Include values in storefront product text search. Supported for short_text, long_text and number fields; other types are refused.
Allow storefront product listings to sort by this field (sort=cf_{namespace}_{key}). Supported for short_text and number fields; other types are refused.
Response
definition created

