Skip to main content
POST
Spree Admin SDK

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Bearer token for admin authentication

Body

application/json
name
string
required
Example:

"color"

label
string
required
Example:

"Color"

position
integer
Example:

1

filterable
boolean
Example:

true

option_values
object[]

Response

option type created

id
string
required
name
string
required
label
string
required
position
number
required
kind
string
required
metadata
object
required
filterable
boolean
required
created_at
string
required
updated_at
string
required
translations
object
option_values
object[]