Spree Admin SDK
Create a custom field definition
Required scope: write_settings (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
application/json
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.
Owner class, e.g. Spree::Product
Defaults to custom
Human-readable name; defaults to titleized key
When false, the definition is admin-only and never exposed in the Store API
When true, values are included in storefront product text search
When true, storefront product listings can sort by this field
Response
201 - application/json
definition created

