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

Body Parameters

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