Skip to main content
POST /api/v1/forward/channels/{channel_id} Uses merge-patch semantics. Omitted fields remain unchanged.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>
Content-TypeYesapplication/json
Idempotency-KeyNoOptional idempotency key for unsafe requests.

Path parameters

ParameterTypeRequiredDescription
channel_idstringYesChannel ID.

Body parameters

ParameterTypeRequiredDescription
namestringNoChannel display name.
identity_idstringNoNew bound Forward Identity ID.
template_idstringNoNew bound Forward Template ID.
enabledbooleanNoManual enable or disable switch.
channel_config.response_optionsobjectNoReply visibility settings.

Example request

curl -s -X POST 'https://api.qoder.com/api/v1/forward/channels/channel_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": "channel_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

HTTPTypeCodeTrigger
400invalid_request_errorinvalid_requestRequest body is invalid.
404not_found_errorchannel_not_foundChannel does not exist.
404not_found_errorchannel_template_not_foundNew Template does not exist.
404not_found_errorchannel_identity_not_foundNew Identity does not exist.
409conflict_errorchannel_identity_disabledNew Identity is disabled.

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 may stop reusing existing conversation bindings; new inbound messages use the new binding.

Get a channel

List channels