Bulk Merge
Purpose
This API allows to merge documents in bulk.
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/templates/{{template_id}}/bulkmerge
Path Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
template_id | String | Specify a unique id for the writer document. |
Body Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
output_settings | { "filename":"NDA <<test>>", "format": "zdoc/pdf/docx", "password": <field_id>, "merge_to": "separatedoc/singledoc" } | Using this param, you will be able to specify the following;
format -> Specify the format in which you would like to download the merged document. Supported formats are zdoc, pdf and docx.
The below key values are optional;
filename -> Specify a name (without extension) for the merged document that needs to be downloaded.
For example: "filename = test" (extension will be automatically added based on the provided output format)
password -> Specify a password if you would like to protect the merged document. This key is supported only with docx and pdf files.
merge_to -> Specify in which type you would like to merge the document. Supported merge types are separatedocand singledoc.
separatedoc - If you would like to merge each record as a separate document.
singledoc- If you would like to merge all the records as a single document.
By default, all the records will be merged as a single document. |
You can provide the data in any one of the below formats | ||
merge_data | JSONObject | Pass a String value through 'data' key as JSON Array. |
merge_data_csv_content | File | Provide the required csv content in your API request body. |
merge_data_json_content | File | Provide the required json content in your API request body. |
merge_data_csv_url | url | Provide the required csv url in your API request body. |
merge_data_json_url | url | Provide the required json url in your API request body. |
Optional Parameters | ||
sign_service_name | String | Specify the third party sign service name with respect to which the merged document needs to be generated.
Possible values are adobesign and docusign. By default, it will be zohosign. |
Note: To use this API, an OAuth token should be generated with the following scopes: ZohoWriter.documentEditor.ALL, ZohoWriter.merge.ALL, WorkDrive.files.ALL