cURL
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 attribute on a sheet by internal ID
id
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 }'
ENUM
400
{ "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 } }
allowed_values