---
title: "更新团队推送渠道"
method: PUT
path: "/api/v1/teams/notify/channels/{id}"
tags: ["【Team 管理员】通知推送"]
---

# 更新团队推送渠道

`PUT /api/v1/teams/notify/channels/{id}`

更新团队推送渠道配置及订阅的事件类型

## Path parameters

- `id` string, required

## Request body

- DomainUpdateNotifyChannelReq
  - `enabled` boolean
  - `event_types` ConstsNotifyEventType[]
  - `headers` object
  - `name` string
  - `secret` string
  - `webhook_url` string

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainNotifyChannel
    - `created_at` integer
    - `enabled` boolean
    - `event_types` ConstsNotifyEventType[]
    - `id` string
    - `kind` 'dingtalk' | 'feishu' | 'wecom' | 'webhook' | 'wechat_mp'
    - `name` string
    - `owner_id` string
    - `owner_type` 'user' | 'team'
    - `scope` string
    - `webhook_url` string
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
