The version rule
A change to the content creates a new version. Existing versions never change, so links, annotations, form submissions, analytics and workflow decisions always point at the exact content they concerned.
What to record
- Keep the input and output version IDs apart.
- Record the operation (inputVersionId and outputVersionId) or upload that produced each version.
- Keep the checksum, content type and size from GET
/api/v2/documents/{documentId}/versions/{versionId}. - Use public IDs in your records and API paths.
What happens when a new version arrives
| Feature | Default behaviour |
|---|---|
| Secure link | Keeps serving its version until you move it to another one |
| Viewer session | Stays on its version |
| Annotation | Stays where it was until a move is proposed and reviewed |
| Form | Keeps the version its definition and submissions belong to |
| Analytics | Attribute events to the version that was shown |
| Workflow run | Keeps the input version it started with |
Do not rewrite history
- Do not move old links to a new version without a deliberate action.
- Do not move resolved annotations automatically.
- Do not combine analytics from different versions unless your report says so.
- Do not treat an approval of one version as covering a later one.