---
title: "Update a Discord integration"
method: POST
path: "/integration/discord/{discordIntegrationId}/update"
tags: ["Discord Integration"]
---

# Update a Discord integration

`POST /integration/discord/{discordIntegrationId}/update`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/integration/discord/{discordIntegrationId}/update`
- Auth: HTTP bearer

## Path parameters

- `discordIntegrationId` string, required: The ID of the Discord integration

## Request body

- object: A bot configuration that can be applied without a dedicated bot instance.
  - `alias` string, nullable: The unique alias for the instance
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `blueprintId` string, nullable: The ID of the blueprint
  - `botId` string, nullable: The ID of the bot this configuration is using
  - `appId` string: The Discord application ID
  - `botToken` string: The Discord bot token
  - `publicKey` string: The Discord public key
  - `handle` string: The Discord command handle
  - `contactCollection` boolean: Weather to collect contacts
  - `sessionDuration` number: The chat session duration
  - `allowFrom` string: Restrict which Discord users can interact with this integration. Accepts Discord user IDs (17-18 digit snowflakes) or @username, one per line. Use * to allow all senders. Leave empty to deny all.

## Response `200`

The Discord integration was updated successfully

- object
  - `id` string, required: The ID of the Discord Integration

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
