I am trying to revert to a specific revision of Google Sheet with Apps Script. I tried a couple of approach but none of them work.
Got some info about revisions here https://developers.google.com/apps-script/advanced/drive#listing_revisions
I also tried as following different approaches
Drive.Revisions.remove("xxxxxxxxxxxxxxxxxxxx", 658);
Drive.Revisions.update(resource, "xxxxxxxxxxxxxxxxxxxxxxxx", 657);
Drive.Revisions.update(resource, "xxxxxxxxxxxxxxxxxxxxxxxx", 657);
None of the above works. Can anybody suggest what I am doing wrong or I am missing something ?