Spree Admin SDK
Create an option type
Creates a new option type. Supports nested option values.
Option values can be provided inline and will be created or updated by name.
Required scope: write_products (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
application/json
Example:
"color"
Example:
"Color"
Available options:
dropdown, color_swatch, buttons Inline option values. Values left out of the list on update are destroyed, so send the full set every time.
Response
option type created

