| |||||
API Home >> Sheet >> API Reference >> books
Save an existing workbook with a new version.
| Field | Description |
| content | Content of the file. |
| updateLock | [string] - Advisory lock for update operation |
| contentType [optional] | [booktype - (xls|sxc|csv)] -- contentType will be derived from the attached file name by default. Use this parameter, if you want to override this. |
| isOverwrite [optional] | [boolean] - Forcibly overwrite in case of update conflict. False by default. |
<form method="POST" action="http://sheet.zoho.com/api/private/xml/savebook/15265000000006067?apikey=[APIKEY]&ticket=[Ticket]" enctype="multipart/form-data" target="_self">
File: <input name="file" name="content" size="38"> <br>
<input type="hidden" name="contentType" value="xls">
<input type="hidden" name="updateLock" value="[updatelock value]">
<input type="submit" value="SaveBook" class="divbutton" name="submit">
</form>
| Field | Description |
| workbookId | Unique ID associated with the workbook that is being saved with new version. |
| workbookName | Name of the saved workbook. |
| modifiedTime | Number of milliseconds between the last modified time and midnight, January 1, 1970 UTC. |
| updateLock | Advisory lock for update operation. Ensures that updates made to workbook are consistent. |
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/savebook/15265000000006067">
<result>
<workbookId>15265000000006067</workbookId>
<workbookName>MonthlySales</workbookName>
<modifiedTime>1174374756812</modifiedTime>
<updateLock>1174374756812</updateLock>
</result>
</response>
{
"response":
{
"uri": "/api/private/json/savebook/15265000000006067",
"result":
{
"workbookId":"15265000000006067",
"workbookName":"MonthlySales",
"lastModifiedTime":1174374756812,
"updateLock":"1174374756812"
}
}
}