Update a channel's binding, display name, enabled state, or response options.
Request headers
|
Header |
Required |
Description |
|
|
Yes |
|
|
|
Yes |
|
|
|
No |
An optional idempotency key for unsafe requests. |
Path parameters
|
Parameter |
Type |
Required |
Description |
|
|
string |
Yes |
Channel ID. |
Request body
|
Parameter |
Type |
Required |
Description |
|
|
string |
No |
Channel display name. |
|
|
string |
No |
ID of the Forward Identity to bind. |
|
|
string |
No |
ID of the Forward Template to bind. |
|
|
boolean |
No |
Enables or disables the channel manually. |
|
|
object |
No |
Updated channel credentials for credential rotation. |
|
|
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 |
|
|
Request body is invalid. |
|
404 |
|
|
The specified channel does not exist. |
|
404 |
|
|
The specified template does not exist. |
|
404 |
|
|
The specified identity does not exist. |
|
409 |
|
|
The specified identity is disabled. |
|
401 |
|
|
PAT is invalid or has expired. |
Notes
-
id,type, andchannel_typecannot be updated. -
binding_statusis system-maintained. -
enabled=trueonly opens the manual switch. It does not changebinding_status. -
Updating
identity_idortemplate_idcloses old active Channel conversations; new inbound messages use the new binding.