---
title: "Set a Slack channel-to-project mapping"
method: PUT
path: "/integrations/connections/{connectionId}/slack-channel-project-mappings/{slackChannelId}"
tags: ["Integrations"]
---

# Set a Slack channel-to-project mapping

`PUT /integrations/connections/{connectionId}/slack-channel-project-mappings/{slackChannelId}`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/integrations/connections/{connectionId}/slack-channel-project-mappings/{slackChannelId}`
- Auth: none declared

Create or update the channel-to-project mapping for one Slack channel. Idempotent on (connection, channel).

## Path parameters

- `connectionId` string, uuid, required: Slack integration connection ID (the `integration_connections.id`, not the Slack team id).
- `slackChannelId` string, required: Slack channel ID (e.g. C0123ABCDEF).

## Request body

- object
  - `organizationId` string: Organization the connection belongs to. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).
  - `slackChannelName` string: Optional. Ignored for storage — the authoritative channel name is always resolved from the connection's channel catalog. Accepted only as a convenience/label; the response returns the catalog name.
  - `projectId` string, uuid, required: Project the channel routes to. Must belong to the organization.

## Response `200`

OK

- object
  - `connectionId` string, uuid, required
  - `slackChannelId` string, required
  - `slackChannelName` string, required
  - `projectId` string, uuid, required

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/965b6230cf45?raw)
