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_id | string | Session ID(sess_ プレフィックス) |
ヘッダー
| 名称 | 必須 | 値 |
|---|
| Authorization | はい | Bearer $QODER_PAT |
| Content-Type | はい | application/json |
リクエストボディ
| フィールド | 型 | 必須 | 説明 |
|---|
title | string | いいえ | 新しい Session タイトル |
metadata | object | いいえ | 新しいメタデータ(全体置換) |
リクエスト例
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",
"..."
}
エラーレスポンス
| HTTP | type | 説明 |
|---|
| 400 | invalid_request_error | リクエストボディの形式エラー |
| 401 | authentication_error | PAT が無効または期限切れ |
| 404 | not_found_error | Session が存在しない |