メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /v1/sessions/{session_id} Session の可変属性(タイトル、メタデータなど)を更新します。変更したいフィールドのみを渡してください。

パスパラメータ

パラメータ説明
session_idstringSession ID(sess_ プレフィックス)

ヘッダー

名称必須
AuthorizationはいBearer $QODER_PAT
Content-Typeはいapplication/json

リクエストボディ

フィールド必須説明
titlestringいいえ新しい Session タイトル
metadataobjectいいえ新しいメタデータ(全体置換)

リクエスト例

curl -X POST https://openapi.qoder.sh/api/v1/cloud/sessions/sess_019e3bb1e8c171fd9abbb1477ffb84cc \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "新しいタイトル",
    "metadata": {"priority": "high"}
  }'

レスポンス例

HTTP 200 OK 更新後の完全な Session オブジェクトを返します。updated_at フィールドは更新されます。
{
  "id": "sess_019e3bb1e8c171fd9abbb1477ffb84cc",
  "type": "session",
  "title": "新しいタイトル",
  "status": "idle",
  "updated_at": "2026-05-18T15:26:25.865347Z",
  "..."
}

エラーレスポンス

HTTPtype説明
400invalid_request_errorリクエストボディの形式エラー
401authentication_errorPAT が無効または期限切れ
404not_found_errorSession が存在しない