Skip to main content
POST
Create a new attribute for products.

Body Parameters

code
string
required
Unique identifier for the attribute
label
string
required
Display label for the attribute
project
integer
required
Project ID
attribute_type
string
required
Type of attribute. One of: text, textarea, number, decimal, date, datetime, boolean, select, multiselect, color, image, file
is_required
boolean
default:"false"
Whether the attribute is required
options
array
Array of options for select/multiselect types
validation_rules
object
Validation rules for the attribute