Skip to main content
PUT
https://backend.anglera.com
/
attributes
/
{sheet_id}
/
{id}
Update Attribute
curl --request PUT \
  --url https://backend.anglera.com/attributes/{sheet_id}/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Anglera-API-Key: <api-key>' \
  --data '
{
  "prompt": "<string>",
  "enrich": true,
  "allowed_values": [
    {}
  ]
}
'
{
  "message": "<string>",
  "attribute": {}
}
Updates an existing attribute. Use the attribute’s internal id (returned by List Attributes) to identify which attribute to update.

Request

curl -X PUT "https://backend.anglera.com/attributes/100/42" \
  -H "X-Anglera-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Extract the primary color of the product",
    "allowed_values": ["Red", "Blue", "Green", "Black", "White"],
    "enrich": true
  }'

Path Parameters

sheet_id
integer
required
ID of the sheet containing the attribute
id
integer
required
Internal attribute ID (from List Attributes)

Body Parameters

All fields are optional. Only include the fields you want to update.
prompt
string
Enrichment prompt describing what this attribute represents
enrich
boolean
Whether to include this attribute in enrichment
allowed_values
array
List of allowed values. Only valid for ENUM type attributes. Returns 400 if the attribute is not an ENUM.

Response

message
string
Success message
attribute
object
The updated attribute (same format as List Attributes)
Example Response
{
  "message": "Attribute updated successfully",
  "attribute": {
    "id": 42,
    "key": "color",
    "name": "Color",
    "prompt": "Extract the primary color of the product",
    "external_id": null,
    "type": "ENUM",
    "config": {
      "allowed_values": ["Red", "Blue", "Green", "Black", "White"]
    },
    "enrich": true,
    "index": 0,
    "mappable": false
  }
}
Setting allowed_values on a non-ENUM attribute will return a 400 error.