pub async fn autosave(state: AppState, data: RefContent) -> Result<(), AppError>
Saves the document by overwriting the snapshot at the current head.