Cloud API to merge multiple Word documents into one document

The MS Word files are popular office file formats for data processing and information sharing. Multiple resources work in organizations and produce numerous documents on a daily basis and for data archives, we may stumble upon a requirement to merge documents produced by multiple teams located at distant geographical locations. The Word documents have various formats and in order to fulfill this requirement, Aspose.Words Cloud offers the capabilities to combine various MS Word and OpenOffice documents into a single file. The API allows you to append a document or documents, specified in the documentList parameter, to the original resource file. The changes are saved in the original resource document if the destFileName parameter is not specified. During documents append, we get an option to define which formatting will be used: appended or destination document. So the Possible values are KeepSourceFormatting or UseDestinationStyles.

Merge files using cURL command

The cURL commands are the easiest way to perform Word document merge operation using RESTful APIs.

curl -X PUT "" -H  "accept: application/json" -H  "Authorization: Bearer <JWT Token>" -H  "Content-Type: application/json" -d "{\"DocumentEntries\":[{\"Href\":\"Another sample file.docx\",\"ImportFormatMode\":\"KeepSourceFormatting\"}],\"ApplyBaseDocumentHeadersAndFootersToAppendingDocuments\":true}"

Request URL