 | Toll Free : 888 900 9646 | |
 |
API Methods >> zohoSheet.userView.saveWorkbookDescriptionTo save a modified workbook into your Zoho Sheet account
Arguments - workbookId [ mandatory ]
- the unique Id of the workbook, which should be saved in the Zoho Sheet account
- updateLock [ mandatory ]
- The advisory lock used for synchronizing access to this workbook
- content [ mandatory ; datatype - base64 encoded format ]
- The content of the modified workbook to be saved into Zoho Sheet account. This should be encoded in Base64 format.
- contentType [optional ; datatype - enumeration { xls | sxc | csv } ]
- The format of the above Base64 encoded data. ZohoSheet accepts Base64 encoded xls/csv/sxc data.
- If no value is specified for this argument , contentType will be considered as xls
- overwrite [ optional ; datatype - boolean ; default value - false]
- In case of conflict while updating the document, this method fails by default. The conflict occurs if other user to whom you had shared your workbook had locked the workbook for editing or some modifications were done to the workbook after you had retreived it for editing.
- If overwrite is specified as true , your modified workbook will be updated forcefully in Zoho Sheet even in case of update conflicts
Returns
Details of the sucessfully modified workbook
Possible Errors
A Sample Call to zohoSheet.userView.saveWorkbook method
Request
<methodCall>
<methodName>zohosheet.userView.saveWorkbook</methodName>
<params>
<param>
<name>workbookId</name>
<value>5000000000050</value>
</param>
<param>
<name>updateLock</name>
<value>1163503951125</value>
</param>
<param>
<name>content</name>
<value> [Base64 encoded content] </value>
</param>
<param>
<name>contentType</name>
<value>xls</value>
</param>
<param>
<name>overwrite</name>
<value>false</value>
</param>
</params>
</methodCall>
Response
<?xml version="1.0" encoding="UTF-8" ?>
<methodResponse methodName="zohosheet.userView.saveWorkbook">
<result>
<workbookId>5000000000050</workbookId>
<workbookName>Welcome</workbookName>
<modifiedTime>2006-11-17 16:09:30</modifiedTime>
<updateLock>1163759970468</updateLock>
</result>
</methodResponse>