Skip to main content
PUT
Set a Discord channel-to-project mapping

Path Parameters

connectionId
string<uuid>
required

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

discordChannelId
string
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.

Minimum string length: 1

Body

application/json
projectId
string<uuid>
required

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

organizationId
string

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

Minimum string length: 1

Response

200 - application/json

OK

connectionId
string<uuid>
required
discordGuildId
string
required

The Discord server (guild) the channel belongs to.

discordChannelId
string
required

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

discordChannelName
string
required

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

projectId
string<uuid>
required