Convert Documents with file
Purpose
To convert a file format (say docx) to any other file format (say html or txt) supported by Zoho Writer.
Supported file formats -> docx, odt, rtf, txt, html, pdf
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/documents/convert
Body Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
content | File | Specify the required content in your API request body. |
format | String | Specify the format of the document to be converted. Supported file formats - docx, odt, rtf, txt, html, pdf |
filename | String | Specify a name to the document to be converted. |
Optional Parameter | ||
Password | String | Specify a unique password for the document to be converted. |
Note: PDF file format is not supported during import.
Sample Request
Copiedcurl --location --request POST "https://www.zohoapis.com/writer/api/v1/documents/convert" \
--header "Authorization: Zoho-oauthtoken xxx.yyy.zzz" \
--form "content=@" \
--form "format=docx" \
--form "filename=Output FileName"
Sample Response
Coverted document will be downloaded.