Skip to content

禁用渠道类型

POST/web/v1/notification-channel-types/command/disableWEB

禁用一个通知渠道类型。禁用期间不能创建该类型的新渠道。

鉴权

需要有效的 JWT token 和 Turnstile 验证。Gateway 校验:enableJwtToken=true, enableTurnstile=true

请求参数

请求体

TypeStatusRequest:

NameTypeRequiredInDescription
bizIdstringYesbody要禁用的类型业务 ID

成功响应

成功200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "bizId": "ct_abc123",
    "typeCode": "EMAIL",
    "typeValue": 80010101,
    "typeName": "Email Notification",
    "typeDescription": "Standard email delivery",
    "typeStatus": "DISABLED",
    "displayOrder": 0,
    "iconUrl": null,
    "extraConfig": null,
    "createdAt": "2026-03-21T00:00:00Z",
    "updatedAt": "2026-03-21T01:00:00Z"
  }
}

错误响应

错误码描述
4000校验错误(缺少 bizId)
4010未授权(JWT token 无效或缺失)
4030Turnstile 验证失败
4040渠道类型未找到

说明

  • 渠道类型状态将变更为 DISABLED
  • 已有的该类型渠道不受影响;仅阻止新渠道的创建。

内部文档