POST /v1/memory_stores/{memory_store_id}/versions/{version_id}/redact
Redacts the content of the specified version. After redaction, the version’s content becomes permanently inaccessible.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
memory_store_id | string | Yes | Memory Store ID with the memstore_ prefix |
version_id | string | Yes | Version ID with the memver_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Example request
Example response
HTTP 200 OK Returns the updated MemoryVersion object (withoutcontent).
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Version unique identifier |
type | string | Always "memory_version" |
store_id | string | Owning Memory Store ID |
entry_id | string | Associated memory entry ID |
entry_path | string | Path of the associated memory entry |
action | string | Original action type (unchanged) |
size | int64 | Original content size (retained) |
content_sha256 | string | Original content hash (retained) |
redacted | boolean | true after redaction |
redacted_at | string | Redaction execution time (ISO 8601) |
created_at | string | Version creation time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | TOKEN_INVALID | Missing or invalid authentication token |
| 404 | not_found_error | Memory Store or version does not exist |
Notes
- Redaction is irreversible. After redaction, the version’s content is permanently inaccessible.
- After redaction,
redactedbecomestrueandredacted_atis set. - The response no longer includes the
contentfield. sizeandcontent_sha256are retained for audit trail.- No request body is required.
- Use cases: removing sensitive data, satisfying data-compliance requirements.