永久遮蔽指定的记忆版本,使其内容不可访问。
HTTP 200 OK
返回更新后的 MemoryVersion 对象(不包含
路径参数
| 参数 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
memory_store_id | string | 是 | Memory Store ID,带 memstore_ 前缀 |
version_id | string | 是 | 版本 ID,带 memver_ 前缀 |
请求头
| Header | 是否必需 | 说明 |
|---|---|---|
| Authorization | 是 | Bearer $QODER_PAT |
| Content-Type | 是 | application/json |
请求示例
返回示例
HTTP 200 OK
返回更新后的 MemoryVersion 对象(不包含 content)。
返回参数
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 唯一版本标识 |
type | string | 固定为 "memory_version" |
store_id | string | 所属 Memory Store 的 ID |
entry_id | string | 关联的记忆条目 ID |
entry_path | string | 关联的记忆条目路径 |
action | string | 原始动作类型(保持不变) |
size | int64 | 原始内容大小(保留) |
content_sha256 | string | 原始内容哈希(保留) |
redacted | boolean | 遮蔽后为 true |
redacted_at | string | 遮蔽时间(ISO 8601) |
created_at | string | 版本创建时间(ISO 8601) |
错误码
| HTTP | 类型 | 触发条件 |
|---|---|---|
| 401 | TOKEN_INVALID | 缺失或无效的鉴权 Token |
| 404 | not_found_error | Memory Store 或版本不存在 |
说明
- 遮蔽操作不可逆。遮蔽后该版本内容将永久不可访问。
- 遮蔽后 redacted 变为 true,redacted_at 被设置。
- 响应不再包含 content 字段。
- size 和 content_sha256 仍会保留,用于审计追踪。
- 无需请求体。
- 常见使用场景包括移除敏感数据、满足数据合规要求。