All Products
Search
Document Center

Qoder CN Series:Update a channel

Last Updated:Jul 15, 2026

Update a channel's binding, display name, enabled state, or response options.

Request headers

Header

Required

Description

Authorization

Yes

Bearer <PAT>

Content-Type

Yes

application/json

Idempotency-Key

No

An optional idempotency key for unsafe requests.

Path parameters

Parameter

Type

Required

Description

channel_id

string

Yes

Channel ID.

Request body

Parameter

Type

Required

Description

name

string

No

Channel display name.

identity_id

string

No

ID of the Forward Identity to bind.

template_id

string

No

ID of the Forward Template to bind.

enabled

boolean

No

Enables or disables the channel manually.

channel_config.credentials

object

No

Updated channel credentials for credential rotation.

channel_config.response_options

object

No

Reply visibility settings.

Example request

curl -s -X POST 'https://api.qoder.com.cn/api/v1/forward/channels/ci_019eabc123' \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": false,
    "channel_config": {
      "response_options": {
        "include_tool_calls": true,
        "include_thinking": false
      }
    }
  }'

Example response

HTTP 200 OK

{
  "id": "ci_019eabc123",
  "type": "channel",
  "identity_id": "idn_019eabc123",
  "template_id": "tmpl_support",
  "channel_type": "feishu",
  "name": "Support Feishu channel",
  "enabled": false,
  "binding_status": "bound",
  "channel_config": {
    "response_options": {
      "include_tool_calls": true,
      "include_thinking": false
    }
  },
  "created_at": "2026-06-18T10:00:00Z",
  "updated_at": "2026-06-18T10:30:00Z"
}

Response fields

Returns the updated Channel object.

Errors

HTTP

Type

Code

Trigger

400

invalid_request_error

invalid_request

Request body is invalid.

404

not_found_error

channel_not_found

The specified channel does not exist.

404

not_found_error

channel_template_not_found

The specified template does not exist.

404

not_found_error

channel_identity_not_found

The specified identity does not exist.

409

conflict_error

channel_identity_disabled

The specified identity is disabled.

401

authentication_error

authentication_required

PAT is invalid or has expired.

Notes

  • id, type, and channel_type cannot be updated.

  • binding_status is system-maintained.

  • enabled=true only opens the manual switch. It does not change binding_status.

  • Updating identity_id or template_id closes old active Channel conversations; new inbound messages use the new binding.