---
title: "启用/停用 IM 渠道"
method: POST
path: "/im-channels/{id}/toggle"
tags: ["IM 渠道"]
---

# 启用/停用 IM 渠道

`POST /im-channels/{id}/toggle`

切换指定 IM 渠道的启用状态

## Path parameters

- `id` string, required

## Response `200`

更新后的渠道

- object

## Other responses

- `400` — 请求参数错误
- `404` — 渠道不存在

## Changes

> 62 revisions in range; 8 could not be searched.

- **2026-05-11** `80a8b4b45cb8` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/im-channels/:id/toggle/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
