| |||||
writer.trashDocument - Used to trash a document i.e. move the document to the trash folder.
[scalar] - required* - Unique ID of the document to be trashed.
1. [struct] - required*
Containing Keys:
Field
Description
documentid
Sample call to writer.trashDocument
POST /interface/xmlrpc HTTP/1.0
Host: http://www.writer.zoho.com/
Content-Type: text/xml
Content-Length:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<methodCall>
<methodName>writer.trashDocument</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>documentid</name>
<value><long>9000000003005</long></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
1. [methodResponse] - required*
Sample return value for writer.trashDocument
HTTP/1.1 200 OK
Connection: close
Content-Length:
Content-Type: text/xml
Date: Wed 01 Nov 2006 23:45:59 GMT
Server: Apache/1.3.4 (Unix)
<methodResponse>
<Trash>
<document_name>test</document_name>
<document_id>6000000057003</document_id>
<version>1.0</version>
<document_name_url>test1</document_name_url>
<author_name>bridget</author_name>
<created_date>Wed, Nov01, 2006</created_date>
<shared_users>[]</shared_users>
<document_locked>false</document_locked>
<document_blogged>false</document_blogged>
<category>OWNED</category>
<info>The document is successfully trashed</info>
</Trash>
</methodResponse>