---
title: "Create a new Dify bot instance"
method: PUT
path: "/dify/update/:difyId/{instance}"
tags: ["Dify Controller"]
---

# Create a new Dify bot instance

`PUT /dify/update/:difyId/{instance}`

Update bot Dify

## Path parameters

- `instance` string, required
- `difyId` string, required

## Request body

- object
  - `enabled` boolean, required
  - `botType` 'chatBot' | 'textGenerator' | 'agent' | 'workflow', required
  - `apiUrl` string, required
  - `apiKey` string, required
  - `triggerType` 'all' | 'keyword'
  - `triggerOperator` 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'regex' | 'none'
  - `triggerValue` string
  - `expire` integer
  - `keywordFinish` string
  - `delayMessage` integer
  - `unknownMessage` string
  - `listeningFromMe` boolean
  - `stopBotFromMe` boolean
  - `keepOpen` boolean
  - `debounceTime` integer
  - `ignoreJids` string[]

## Response `200`

Bot instance created successfully

- object
  - `message` string

## Changes

- **2024-11-22** (v2) `2979d4730456` — 1 info
  - endpoint added
- **2024-10-14** (v2) `c153448703e5` — 1 breaking
  - api path removed without deprecation
- **2024-09-09** (v2) `0c4620ca5ed5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/evolution-foundation/apis/openapi/changes/dify/update/:difyId/:instance/put.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/openapi.md) · [All operations](https://skmtc.dev/evolution-foundation/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evolution-foundation/openapi/revisions/153363ee7f38/schema)
