Skip to main content
Channels

チャネルの更新

Channel の紐づけ、表示名、有効状態、または返信オプションを更新します。

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

Headers

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

Path parameters

ParameterTypeRequiredDescription
channel_idstringYesチャネル ID。

Body parameters

ParameterTypeRequiredDescription
namestringNoチャネルの表示名。
identity_idstringNofixed モードでの新しい Forward Identity ID。
template_idstringNofixed モードでの新しい 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_ACCESS_TOKEN" \
  -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",
  "identity_resolution": {
    "mode": "fixed"
  },
  "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 オブジェクトを返します。

Error codes

HTTPTypeTrigger
400invalid_request_errorリクエストボディが無効です。
401authentication_errorPAT または SAT が無効または期限切れです。
404not_found_errorChannel が存在しません。
404not_found_error新しい Template が存在しません。
404not_found_error新しい Identity が存在しません。
409conflict_error新しい Identity が無効になっています。

Notes

  • identity_resolution.mode は作成後に変更できません。モードを切り替えるには Channel を削除して再作成する必要があります。
  • pairing モードでは identity_id または template_id の更新はできません。これらは Pairing API によってメッセージスコープごとにバインドされます。
  • idtypechannel_type は更新できません。
  • binding_status はシステムによって維持されます。
  • enabled=true は手動スイッチを開くだけです。binding_status は変更されません。
  • fixed モードで identity_id または template_id を更新すると、既存の会話バインディングの再利用が停止する場合があります。新しい受信メッセージは新しいバインディングを使用します。