メインコンテンツへスキップ
POST /api/v1/forward/sessions/{session_id} 安定したセッションフィールドを更新します。ランタイム構成はセッション作成後に変更できません。

Headers

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

Path parameters

ParameterTypeRequiredDescription
session_idstringYesSession ID。

Body parameters

ParameterTypeRequiredDescription
titlestringNo新しいセッションのタイトル。
metadataobjectNoメタデータのマージパッチ。指定したキーは既存のキーを上書きし、省略したキーは変更されません。

Example request

curl -s -X POST 'https://api.qoder.com/api/v1/forward/sessions/sess_xxx' \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated session title",
    "metadata": {
      "source": "mobile",
      "biz_id": "ticket_123"
    }
  }'

Example response

HTTP 200 OK
{
  "id": "sess_xxx",
  "type": "session",
  "identity_id": "idn_xxx",
  "template": {
    "id": "tmpl_support",
    "type": "template",
    "name": "Support assistant",
    "model": "ultimate",
    "version": 3
  },
  "source_type": "api",
  "status": "idle",
  "title": "Updated session title",
  "metadata": {
    "source": "mobile",
    "biz_id": "ticket_123"
  },
  "stats": {
    "active_seconds": 30,
    "duration_seconds": 3600
  },
  "usage": {
    "credits": 12.7
  },
  "archived_at": null,
  "created_at": "2026-06-22T10:00:00Z",
  "updated_at": "2026-06-22T12:00:00Z"
}

Response fields

更新された Session オブジェクトを返します。

Errors

HTTPTypeCodeTrigger
400invalid_request_errorinvalid_request更新ボディが無効。
401authentication_errorauthentication_requiredPAT が無効または期限切れ。
404not_found_errorsession_not_foundSession が存在しない。
409conflict_errorsession_archivedSession がアーカイブ済み。

Notes

  • configresourcesincremental_streaming_enabled は作成時の設定であり、ここでは変更できません。

セッションの取得

セッションのアーカイブ