Update an existing custom attribute’s properties.
PUT https://www.chatbase.co/api/v1/chatbots/{chatbotId}/custom-attributes/{name}
<YOUR_API_KEY>
{ "label": "Updated Label", "description": "Updated description", "archived": false }
Show Custom Attribute Object
text
number
boolean
date
{ "message": "Success", "data": { "name": "company", "type": "text", "label": "Updated Label", "description": "Updated description", "archived": false } }
{ "message": "Invalid request body" }
{ "message": "Unauthorized access" }
{ "message": "Custom attribute not found" }
{ "message": "Rate limit exceeded" }
curl -X PUT 'https://www.chatbase.co/api/v1/chatbots/5ba682d23d7cf92bef87bfd4/custom-attributes/company' \ -H 'Authorization: Bearer <YOUR_API_KEY>' \ -H 'Content-Type: application/json' \ -d '{ "label": "Updated Label", "description": "Updated description", "archived": false }'