---
title: "Update Evolution Bot"
method: PUT
path: "/evolutionBot/update/:evolutionBotId/{instance}"
tags: ["Evolution Bot Controller"]
---

# Update Evolution Bot

`PUT /evolutionBot/update/:evolutionBotId/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/evolutionBot/update/:evolutionBotId/{instance}`
- Auth: API key in header `apikey`

Update an existing Evolution Bot configuration.

## Path parameters

- `evolutionBotId` string, required
- `instance` string, required

## Request body

- object
  - `enabled` boolean, required: Enable or disable the Evolution Bot
  - `apiUrl` string, required: API URL for the bot
  - `apiKey` string: API Key for authentication (optional)
  - `triggerType` string, required: Trigger type, e.g., 'all' or 'keyword'
  - `triggerOperator` string, required: Operator logic, e.g., 'contains', 'equals', 'startsWith', 'endsWith', 'regex'
  - `triggerValue` string, required: Trigger value, e.g., 'test'
  - `expire` number, required: Expiration time for the session (in seconds)
  - `keywordFinish` string, required: Keyword to terminate the session
  - `delayMessage` number, required: Delay time (in ms) for sending messages
  - `unknownMessage` string, required: Message displayed when an unknown input is received
  - `listeningFromMe` boolean, required: Listen to messages sent by the bot owner
  - `stopBotFromMe` boolean, required: Stop bot when the owner sends a message
  - `keepOpen` boolean, required: Keep the session open after processing messages
  - `debounceTime` number, required: Time delay to debounce messages
  - `ignoreJids` string[]: List of JIDs to ignore

## Response `200`

Evo bot atualizado com sucesso

- object
  - `message` string

## Changes

- **2025-05-16** (v2) `153363ee7f38`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2024-11-25** (v2) `6d14e589f2c9`: 1 breaking, 2 info
  - removed the media type `application/json` for the response with the status `200`
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `404`
- **2024-11-25** (v2) `8720a99d493a`: 1 breaking, 2 info
  - api path removed without deprecation
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
- **2024-11-25** (v2) `bfaf67aeaded`: 2 info
  - endpoint added
  - endpoint added
- **2024-11-25** (v2) `c153448703e5`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/evolutionBot/update/:evolutionBotId/:instance/put.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
