メインコンテンツへスキップ
POST /api/v1/forward/channels/{channel_id} merge-patch セマンティクスを使用します。省略されたフィールドは変更されません。

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT>
Content-TypeYesapplication/json
Idempotency-KeyNo安全でないリクエスト向けの任意のべき等性キー。

Path parameters

ParameterTypeRequiredDescription
channel_idstringYesチャネル ID。

Body parameters

ParameterTypeRequiredDescription
namestringNoチャネルの表示名。
identity_idstringNo新たに紐づける Forward Identity ID。
template_idstringNo新たに紐づける Forward Template ID。
enabledbooleanNo手動での有効化・無効化スイッチ。
channel_config.response_optionsobjectNo返信の表示設定。

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

更新後の Channel オブジェクトを返します。

Errors

HTTPTypeCodeTrigger
400invalid_request_errorinvalid_requestリクエストボディが無効です。
404not_found_errorchannel_not_foundChannel が存在しません。
404not_found_errorchannel_template_not_found新しい Template が存在しません。
404not_found_errorchannel_identity_not_found新しい Identity が存在しません。
409conflict_errorchannel_identity_disabled新しい Identity が無効になっています。

Notes

  • idtypechannel_type は更新できません。
  • binding_status はシステムによって維持されます。
  • enabled=true は手動スイッチを開くだけです。binding_status は変更されません。
  • identity_id または template_id を更新すると、既存の会話バインディングの再利用が停止する場合があります。新しい受信メッセージは新しいバインディングを使用します。

チャネルの取得

チャネルの一覧取得