Create a new attribute with optional JSONata expression.
The attribute object to be created.
Indicates whether the attribute is displayed in the PLP (Product Listing Page)
Indicates whether the attribute is displayed in the PDP (Product Detail Page)
Indicates whether the attribute is used for product comparison in a store
The type of the attribute
The formatting type (specific to some types)
Indicates whether proportion restriction is applied (specific to some types)
- AIPIM Production Serverhttps://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/attribute
curl -i -X POST \
'https://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/attribute' \
-H 'Content-Type: application/json' \
-b cc.session=YOUR_API_KEY_HERE \
-d '{
"name": "Sample Attribute",
"active": true,
"code": "sample_attribute",
"auto_sync_to_prod": true,
"description": "This is a sample attribute",
"vms_visible": false,
"vms_editable": false,
"store_filter": false,
"store_display_plp": true,
"store_display_pdp": true,
"store_search": false,
"store_compare": false,
"tags": [
"tag1",
"tag2"
],
"type": "Short Text",
"mandatory": true,
"jsonata": "payload.key",
"limit": 10,
"formatting": "None"
}'Attribute created successfully.
Indicates whether the attribute is displayed in the PLP (Product Listing Page)
Indicates whether the attribute is displayed in the PDP (Product Detail Page)
Indicates whether the attribute is used for product comparison in a store
The type of the attribute
The formatting type (specific to some types)
Indicates whether proportion restriction is applied (specific to some types)
{ "name": "Sample Attribute", "active": true, "code": "sample_attribute", "auto_sync_to_prod": true, "description": "This is a sample attribute", "vms_visible": false, "vms_editable": false, "store_filter": false, "store_display_plp": true, "store_display_pdp": true, "store_search": false, "store_compare": false, "tags": [ "tag1", "tag2" ], "type": "Short Text", "mandatory": true, "jsonata": "payload.key", "limit": 10, "formatting": "None" }