restore_doc
Write a retained revision back as the current document by copying the retained row through the normal write path with a reason, leaving all data intact.
Instructions
Write a retained revision back as the current document. The retained row is copied through the normal write path, with a reason. Nothing is deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document id to restore. | |
| reason | Yes | Why this revision is restored. At least 10 characters. | |
| source | Yes | Source tag. Must be in EMET_RESTORE_TAGS. A missing source is refused. | |
| version | Yes | Retained revision number to write back. | |
| exchange | No | The exchange (turn) this write belongs to, counting from 1. A write for exchange n while exchange n-1 was never appended is refused by the session graph until n-1 is appended. | |
| session_id | No | Transcript session id. Required on Path 2. |