Skip to main content
POST
https://backend.anglera.com
/
attributes
/
{sheet_id}
Create Attribute
curl --request POST \
  --url https://backend.anglera.com/attributes/{sheet_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Anglera-API-Key: <api-key>' \
  --data '
{
  "key": "<string>",
  "name": "<string>",
  "type": "<string>",
  "prompt": "<string>",
  "enrich": true,
  "config": {},
  "allowed_values": [
    {}
  ]
}
'
{
  "message": "<string>",
  "attribute": {}
}
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

sheet_id
integer
required
ID of the sheet to add the attribute to

Body Parameters

key
string
required
Unique identifier for the attribute within the sheet (e.g., "color", "brand_name")
name
string
required
Human-readable display name
type
string
required
Attribute data type. One of: STRING, ENUM, ARRAY, IMAGE, NUMBER, METRIC, HTML, JSON, GENERATE, EXTRACT, AUDIT
prompt
string
Enrichment prompt describing what this attribute represents and how to extract it
enrich
boolean
Whether to include this attribute in enrichment. Defaults to true.
config
object
Type-specific configuration object
allowed_values
array
Shorthand for setting config.allowed_values. Only valid for ENUM type attributes.

Response

message
string
Success message
attribute
object
The newly created attribute (same format as List Attributes)
Example 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
  }
}