| |||||
API Home >> Writer >> API Reference >> POST Method APIs
To restore a particular document from trash.
| Field | Description |
| documentId | Unique ID of the existing document. |
<form method="POST" action="http://export.writer.zoho.com/api/private/xml/restoreDocument/[documentId]?apikey=[APIKEY]&ticket=[Ticket]">
<input type="submit" value="RestoreDoc" class="divbutton" name="submit">
</form>
| Field | Description |
| documentId | Unique ID associated with the document that is being restored from trash folder. |
| documentName | Name of the document that is restored to the My Docs folder. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/restoreDocument/8892000000009037">
<result>
<documentId>8892000000009037</documentId>
<documentName>Invoice</documentName>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/restoreDocument/8892000000009037",
"result":
{
"documentId":"8892000000068007",
"documentName":"Invoice"
}
}
}