Skip to content

Modify Issue Channel



POST /api/v1/channel/{channel_uuid}/modify

Overview

Partially updates the name, description, notification targets, or escalation configuration of the specified channel.

Prerequisites and Usage Steps

First copy the target UUID and the existing configuration from the Channel Quick List. Omitted fields keep their current values; passing a notification array or an escalation object replaces the corresponding field entirely. The default channel keeps its original name, but its description and notification configuration can still be adjusted. To disable escalation notifications, submit triggerTime=0 and notifyTarget=[]; do not use an empty object that lacks the sub-fields. The channel and the escalation trigger configuration are saved in separate steps. After a timeout or error, query the channel status first, then decide which fields to retry to avoid duplicate creation. Escalation notifications apply to Issues that are created after the rule is enabled or updated, are still open, and have no owner. After triggerTime elapses, a scheduled task performs the check; this is not a precise countdown. This task also depends on a valid no-owner escalation notification policy in the workspace; if no message is received, verify the notification policy, the notification targets, and the site task switch.

Path Parameters

Parameter Type Required Description
channel_uuid string Y UUID of the channel in the current workspace.
Example: chan_example
How to obtain or fill in: Obtain from content[].uuid in the Channel Quick List.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential of the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace.

Body Parameters

Parameter Type Required Description
notifyTarget[*] string UUID of a single notification target.
Example: notify_example
How to obtain or fill in: Use the Notification Target List to query notification targets configured in the same workspace, and take content.data[].uuid.
notifyUpgradeCfg.notifyTarget[*] string UUID of a single escalation notification target.
Example: notify_example
How to obtain or fill in: Use the Notification Target List to query notification targets configured in the same workspace, and take content.data[].uuid.
name string Channel name, up to 256 characters.
Allows null: False
Maximum length: 256
Example: Production Anomaly
How to obtain or fill in: Check the existing name in the Channel Quick List, then choose a name that is not already used in this workspace.
description string Channel description, up to 256 characters.
Allows null: False
Allows empty string: True
Maximum length: 256
Example: Production anomaly collaboration channel
How to obtain or fill in: Fill in according to the channel's purpose; pass an empty string to clear it.
notifyTarget array Complete array of notification target UUIDs; pass [] to clear the configuration.
Allows null: False
Example: ["notify_example"]
How to obtain or fill in: Use the Notification Target List to query notification targets configured in the same workspace, and take content.data[].uuid.
notifyUpgradeCfg json Complete escalation notification configuration; if this object is passed, both triggerTime and notifyTarget must be provided.
Allows null: False
Example: {"triggerTime": 300, "notifyTarget": ["notify_example"]}
How to obtain or fill in: Choose the number of seconds according to the business wait time, and use real notification target UUIDs.
notifyUpgradeCfg.triggerTime integer Conditionally required Number of seconds to wait before the escalation notification; when non-zero, at least one notification target is also required to enable the rule.
Allows null: False
Example: 300
How to obtain or fill in: Enter a positive integer number of seconds, for example 300 means waiting 5 minutes. To disable, pass 0 together with an empty notifyTarget array.
notifyUpgradeCfg.notifyTarget array Conditionally required Complete list of escalation notification target UUIDs; combined with triggerTime=0 to disable.
Allows null: False
Example: ["notify_example"]
How to obtain or fill in: Use the Notification Target List to query notification targets configured in the same workspace, and take content.data[].uuid.

Additional Parameter Notes

The notification target list and the escalation configuration do not need to be submitted together. To adjust only the description, omit the other two fields.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/channel/chan_example/modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"description":"Production anomaly handling and escalation collaboration"}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer Database record ID. Use uuid to operate on the channel.
content.uuid string Channel UUID, used for modification, deletion, or subscription.
content.workspaceUUID string Workspace to which the channel belongs.
content.name string Channel name. default indicates the default channel.
content.description string Channel description.
content.notifyTarget array<string> UUIDs of the notification targets configured directly on this channel.
content.notifyTarget[] string UUID of a single notification target.
content.notifyUpgradeCfg object Escalation notification configuration; an empty object when not configured.
content.notifyUpgradeCfg.triggerTime integer Wait duration before the escalation notification is triggered, in seconds.
content.notifyUpgradeCfg.notifyTarget array<string> List of escalation notification target UUIDs.
content.notifyUpgradeCfg.notifyTarget[] string Escalation notification target UUID.
content.status integer Record status; 0 means normal.
content.creator string Identity that created the record.
content.updator string Identity of the most recent update; may be an empty string if never updated.
content.createAt integer Creation time, in Unix seconds.
content.updateAt integer Update time, in Unix seconds; -1 if never updated.
content.deleteAt integer Deletion time, in Unix seconds; -1 if not deleted.
content.declaration object or null Public declaration of the workspace.
{
  "code": 200,
  "content": {
    "id": 42,
    "uuid": "chan_example",
    "workspaceUUID": "wksp_example",
    "name": "Production Anomaly",
    "description": "Production anomaly handling and escalation collaboration",
    "notifyTarget": [
      "notify_example"
    ],
    "notifyUpgradeCfg": {
      "triggerTime": 300,
      "notifyTarget": [
        "notify_example"
      ]
    },
    "status": 0,
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427260,
    "deleteAt": -1,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed Field type, length, enum, or field name violates the declaration Parameter parsing failed Verify the request against the parameter table; provide both sub-fields for the escalation configuration.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError JSON top level is not an object Part of the json file has a format error Pass a single JSON object.
404 ft.NotFoundChannel The target channel does not exist, has been deleted, or does not belong to the current workspace Specified channel not found Obtain a valid UUID again from the Channel Quick List.
400 ft.ChannelNameRepeat The target name is already used by another active channel Duplicate channel name Choose a channel name that is not used in this workspace.

Feedback

Is this page helpful?