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

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/memory_stores/{memory_store_id}/archive アクティブな Memory Store をアーカイブします。アーカイブ後、状態は "archived" に変わります。

パスパラメータ

パラメータ必須説明
memory_store_idstringはいMemory Store ID(memstore_ プレフィックス)

ヘッダー

ヘッダー必須
AuthorizationBearer $QODER_PATはい
Content-Typeapplication/jsonはい

リクエスト例

curl -X POST "https://openapi.qoder.sh/api/v1/cloud/memory_stores/memstore_019e3bb8d50674d9b082b73709c29c87/archive" \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json"

レスポンス例

HTTP 200 OK 更新後の MemoryStore オブジェクトを返します。状態が "archived" に変わります。
{
  "id": "memstore_019e3bb8d50674d9b082b73709c29c87",
  "type": "memory_store",
  "name": "doc-test-store",
  "description": "テスト用",
  "status": "archived",
  "entry_count": 0,
  "total_size": 0,
  "metadata": {},
  "archived_at": "2026-05-18T15:34:00.007987Z",
  "created_at": "2026-05-18T15:33:49.449264Z",
  "updated_at": "2026-05-18T15:34:00.007987Z"
}

レスポンスフィールド

フィールド説明
idstring一意識別子
typestring固定値 "memory_store"
namestringストア名
descriptionstringストアの説明
statusstringアーカイブ後は "archived"
entry_countint64メモリエントリ数
total_sizeint64総ストレージサイズ(バイト)
metadataobjectカスタムメタデータ
archived_atstringアーカイブ時刻(ISO 8601)
created_atstring作成時刻(ISO 8601)
updated_atstring最終更新時刻(ISO 8601)

エラーレスポンス

HTTPtype説明
401TOKEN_INVALID認証トークンが提供されていないまたは無効
404not_found_error指定 ID の Memory Store が存在しない

注意事項

  • アーカイブ操作は archived_at タイムスタンプを設定します
  • アーカイブ後、status"archived" に変わります
  • アーカイブ後も DELETE エンドポイントで完全削除できます
  • リクエストボディは不要です