# Update chat button configuration Update a chat button's global configuration (name, icon, color, etc.). This updates the button definition, not its state for a specific chat. Requires API key authentication. Endpoint: PUT /api-update-chat-button Version: 1.1.0 Security: ApiKeyAuth ## Query parameters: - `buttonId` (string, required) ID of the chat button to update ## Request fields (application/json): - `is_enabled` (boolean) Enable or disable the button globally Example: true - `name` (string) Button display name Example: "Agente" - `icon` (string) Icon identifier Example: "bot" - `color` (string) Button color (hex format) Example: "#3B82F6" - `is_toggle` (boolean) Whether this is a toggle button Example: true - `position` (integer) Display order/position ## Response 200 fields (application/json): - `success` (boolean) - `data` (object) Chat button configuration for the chat header - `data.id` (string) - `data.user_id` (string) - `data.name` (string) Display name of the button Example: "Agente" - `data.icon` (string) Icon identifier for the button Example: "robot" - `data.color` (string) Color of the button (hex format) Example: "#3B82F6" - `data.is_toggle` (boolean) Whether this button is a toggle button Example: true - `data.is_enabled` (boolean) Whether the button is currently enabled/active Example: true - `data.position` (integer) Display order/position of the button - `data.created_at` (string) - `data.updated_at` (string,null) ## Response 400 fields (application/json): - `error` (string, required) Error message ## Response 401 fields (application/json): - `error` (string, required) Error message ## Response 404 fields (application/json): - `error` (string, required) Error message ## Response 500 fields (application/json): - `error` (string, required) Error message