# Update chat button state for a specific chat Enable or disable a chat button for a specific chat/conversation. Chat buttons are associated with conversations, not contacts. Requires API key authentication. Endpoint: POST /api-update-chat-button-state Version: 1.1.0 Security: ApiKeyAuth ## Request fields (application/json): - `chat_id` (string, required) ID of the chat/conversation - `button_id` (string, required) ID of the chat button - `is_enabled` (boolean, required) Whether to enable (true) or disable (false) the button for this chat ## Response 200 fields (application/json): - `success` (boolean) - `data` (object) - `data.chat_id` (string) - `data.button_id` (string) - `data.button_name` (string) - `data.is_enabled` (boolean) - `message` (string) Example: "Button \"Agente\" has been enabled for this chat" ## 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