Skip to main content

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}/versions/{version_id}/redact Redacts the content of the specified version. After redaction, the version’s content becomes permanently inaccessible.

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID with the memstore_ prefix
version_idstringYesVersion ID with the memver_ prefix

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT
Content-TypeYesapplication/json

Example request

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

Example response

HTTP 200 OK Returns the updated MemoryVersion object (without content).
{
  "id": "memver_019e3bb9cf417d89970ba7f45e728c56",
  "type": "memory_version",
  "store_id": "memstore_019e3bb93b7074f9a5130d39ddcca90f",
  "entry_id": "mem_019e3bb9cf417d7dbb11fe9784dbb65c",
  "entry_path": "versions/test.md",
  "action": "created",
  "size": 17,
  "content_sha256": "fe80a065cb120813abf7dfceb4018a53d6eb7140c785181634e019656176c64e",
  "redacted": true,
  "redacted_at": "2026-05-18T15:35:13.100297Z",
  "created_at": "2026-05-18T15:34:53.528628Z"
}

Response fields

FieldTypeDescription
idstringVersion unique identifier
typestringAlways "memory_version"
store_idstringOwning Memory Store ID
entry_idstringAssociated memory entry ID
entry_pathstringPath of the associated memory entry
actionstringOriginal action type (unchanged)
sizeint64Original content size (retained)
content_sha256stringOriginal content hash (retained)
redactedbooleantrue after redaction
redacted_atstringRedaction execution time (ISO 8601)
created_atstringVersion creation time (ISO 8601)

Errors

HTTPTypeTrigger
401TOKEN_INVALIDMissing or invalid authentication token
404not_found_errorMemory Store or version does not exist

Notes

  • Redaction is irreversible. After redaction, the version’s content is permanently inaccessible.
  • After redaction, redacted becomes true and redacted_at is set.
  • The response no longer includes the content field.
  • size and content_sha256 are retained for audit trail.
  • No request body is required.
  • Use cases: removing sensitive data, satisfying data-compliance requirements.
See Errors for the full error envelope.