D

Document Content and Versions

Document Content and Versions

Use GET /api/v1/resources/{resource_id}/content to read content and PATCH to replace it. Use the snapshots endpoints to create and list recovery points.

Recommended write sequence

  1. Read resource metadata.

  2. Read current content.

  3. Validate the transformation locally.

  4. Replace content with create_snapshot: true.

  5. Store the returned snapshot metadata.

  6. Re-read the document and verify the expected section.

Prefer small, intentional replacements. For large rewrites, use a dedicated job with an audit trail and a human review step.