pub async fn create_snapshot( state: AppState, ref_id: Uuid, ) -> Result<(), AppError>
Saves the document by replacing the head with a new snapshot.
The snapshot at the previous head is not deleted.