Creates a new attribute on a sheet. The attribute will be appended to the end of the attribute list.
Request
curl -X POST "https://backend.anglera.com/attributes/100" \
-H "X-Anglera-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"key": "color",
"name": "Color",
"type": "ENUM",
"prompt": "The primary color of the product",
"enrich": true,
"allowed_values": ["Red", "Blue", "Green"]
}'
Path Parameters
ID of the sheet to add the attribute to
Body Parameters
Unique identifier for the attribute within the sheet (e.g., "color", "brand_name")
Human-readable display name
Attribute data type. One of: STRING, ENUM, ARRAY, IMAGE, NUMBER, METRIC, HTML, JSON, GENERATE, EXTRACT, AUDIT
Enrichment prompt describing what this attribute represents and how to extract it
Whether to include this attribute in enrichment. Defaults to true.
Type-specific configuration object
Shorthand for setting config.allowed_values. Only valid for ENUM type attributes.
Response
{
"message": "Attribute created successfully",
"attribute": {
"id": 45,
"key": "color",
"name": "Color",
"prompt": "The primary color of the product",
"external_id": null,
"type": "ENUM",
"config": {
"allowed_values": ["Red", "Blue", "Green"]
},
"enrich": true,
"index": 3,
"mappable": false
}
}