Integrations

Set a Discord channel-to-project mapping

Changed on

Create or replace one Discord channel's mapping. Idempotent on (connection, channel). New conversations in the channel and its threads then run in the project; existing conversations keep theirs.

put/integrations/connections/{connectionId}/discord-channel-project-mappings/{discordChannelId}

Request

Path parameters

connectionIdstring uuid required

Discord bot integration connection ID (the integration_connections.id).

discordChannelIdstring required

Discord channel ID. Must be a text or announcement channel the Sazabi bot can see in the connection's server; a thread uses its channel's mapping.

Request body

organizationIdstring

Organization the connection belongs to. Auto-filled from CLI and SDK context when omitted.

projectIdstring uuid required

Project the channel's conversations run in. Must belong to the organization.

Response

OK

connectionIdstring uuid required
discordGuildIdstring required

The Discord server (guild) the channel belongs to.

discordChannelIdstring required

Discord channel ID (a snowflake, e.g. 1234567890123456789).

discordChannelNamestring required

The channel's name, as Discord named it when the mapping was set.

projectIdstring uuid required

Changes