跳至主要内容

Update channel

PATCH 

/api/v1/notifications/channels/{channelId}

Update channel configuration (partial update supported).

Parameters

  • channelId (string, required): Channel identifier (format: channel_xxx)

Request Body

All fields are optional. Only provided fields will be updated.

  • name (string): Channel name.
  • channelType (string): Valid values: email, teams, linemessage, webhook.
  • description (string): Channel description.
  • isEnabled (boolean): Enable or disable the channel.
  • commonSettings (object): timeout, retryAttempts, retryDelay.
  • config (object): Channel-type-specific configuration (same structure as create).
  • templateId (string): Template identifier.
  • recipients (array): Default recipients.
  • tags (array): Tags for categorization.

Responses

  • 200 OK: Channel updated successfully.
  • 404 Not Found: Channel not found.
  • 400 Bad Request: Validation error.
  • 503 Service Unavailable: Channel validation failed.

Request

Responses

Channel updated successfully