cURL
curl --request PUT \ --url https://www.chatbase.co/api/v1/chatbots/{chatbotId}/custom-attributes/{name} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "Department", "description": "Updated employee department", "archived": false }'
{ "message": "Success", "data": { "name": "department", "label": "Department", "type": "text", "description": "Employee department", "archived": false } }
Updates an existing custom attribute
API key in Bearer token format
ID of the chatbot
Name of the custom attribute
Display label for the attribute
"Department"
Description of the attribute
"Updated employee department"
Whether the attribute is archived
false
Custom attribute updated successfully
"Success"
Updated custom attribute
Show child attributes