Free Support Forum -

Accept or reject all revisions in a Microsoft Word document using GroupDocs.Comparison REST API

I have a word document with track changes on. Is there an api to accept all the revisions and create a clean document will all changes accepted?


Please use PutChangesDocument for accepting/rejecting changes. Kindly check documentation article to accept or reject document changes for more details. Hopefully it will help you to accomplish the task.

Thanks for responding.
The links you refer to, seem to be comparing two documents and then accept/reject the compared changes. In my case there is just one document with track changes on and on which multiple changes have happened by the same author, so I’m not actually doing any comparison. If I open the document in Microsoft Word, I would normally use the
Review -> Accept -> Accept All Changes
option to achieve this end.

If this can be done through the links you have given, kindly provide some more guidance. I tried putting source and target as the same file but it did not detect any changes, so, did not work.


Thanks for your feedback. We have logged a ticket COMPARISONCLOUD-153 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress within this forum thread.

Hi, just wanted to check if there was any update on this request.


We have planned the issue investigation and will share an ETA with you soon.

Hi, checking to see if there is any update or an ETA.


The requested feature was also missing in the native on-premise API of GroupDocs.Comparison Cloud API. We have implemented the feature in GroupDocs.Comparison for .NET and now will port it to the Cloud version. We will notify you as soon as some further update is available. Thanks for your patience and cooperation.


We have good news for you, your above requested feature is implemented in the latest release of GroupDocs.Comparison Cloud 20.12. Please find a sample cURL command for reference and check the documentation for more details.

Working with Revisions

curl -X PUT "" 
-H "accept: application/json" 
-H "authorization: Bearer [Access_Token]" 
-H "Content-Type: application/json" 
-H "x-aspose-client: Containerize.Swagger" 
-d "{ "SourceFile": { "FilePath": "Temp/Revisions.docx" }, "Revisions": [ { "Id": 0, "Action": "Accept" },{ "Id": 1, "Action": "Accept" },{ "Id": 2, "Action": "Accept" },{ "Id": 3, "Action": "Accept" },{ "Id": 4, "Action": "Accept" },{ "Id": 5, "Action": "Accept" } ], "OutputPath": "Temp/Revisions_Accept.docx"}"

That is fantastic. Thanks.
Will test and confirm.

1 Like

Tested this. Works great. :+1:
Although, it would have been slightly more convenient if we didn’t have to fetch the revisions first, some option to accept all revisions that exist in the doc. But nevertheless, this does the job. So thanks for making this api available.


It is good to know that the new ApplyRevisions API method helps you to accomplish your requirements.

Thanks for your suggestions. We have logged an enhancement ticket COMPARISONCLOUD-171 for further investigation and will try to improve the ApplyRevisions API.


Please note above enhancement ticket COMPARISONCLOUD-171 is resolved. In the 21.3 release, we have introduced two new properties AcceptAll and RejectAll for the requirement in ApplyRevisions API method. Please check the following documentation articles for details. We are also updating the SDKs for this change.

Accept all Revisions
Reject all Revisions