Skip to main content
POST
Create attribute

Authorizations

Authorization
string
header
required

Sign in to the admin dashboard and use the resulting ID token for a store and operation you can access. The authenticated dashboard cookie is accepted when the Authorization header is absent. Missing or insufficient access returns 401.

Body

application/json
name
string
required
Maximum string length: 128
attribute_type
enum<string>
required
Available options:
text,
number,
boolean,
date,
single-select,
multi-select,
color
is_visible
boolean
required
is_filterable
boolean
required
active
boolean
default:true
supports_variant_creation
boolean

can be true for attribute types - single-select and color.

Response

OK

message
string
success
boolean
content
object