| |||||
API Home >> Writer >> API Reference >> POST Method APIs
To save an existing document with a new version. (The old content will be replaced with new one)
| Field | Description |
| documentId | Unique ID of the existing document. |
| content | Specify the new content for the document. All the previous content will be replaced with the new one. |
<form method="POST" action="http://export.writer.zoho.com/api/private/xml/saveDocument/[documentId]?apikey=[APIKEY]&ticket=[Ticket]">
<input type="hidden" name="content" value="[Specify Doc content here]">
<input type="submit" value="SaveDoc" class="divbutton" name="submit">
</form>
| Field | Description |
| documentId | Unique ID associated with the saved document. |
| documentName | Name of the saved document with a new version & content. |
| version | New version number of the saved document. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/saveDocument/8892000000009037">
<result>
<documentId>8892000000009037</documentId>
<documentName>Invoice</documentName>
<version>1.9</version>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/saveDocument/8892000000009037",
"result":
{
"documentId":"8892000000068007",
"documentName":"Invoice",
"version":"1.9"
}
}
}