Get
version details of a particular document. (Version is appended with each explicit save of a
document)
Request URL :
XML : http://export.writer.zoho.com/api/private/xml/version/[documentID]?apikey=[API Key]&ticket=[Ticket]
JSON : http://export.writer.zoho.com/api/private/json/version/[documentID]?apikey=[API Key]&ticket=[Ticket]
Response fields
The schema document for the API response is located at: http://export.writer.zoho.com/schema/restapi/version.xsd
Field
|
Description
|
documentId
|
Unique ID associated with the
document whose version details is being listed.
|
version
|
List of the document versions that
gets appended with each explicit save.
|
updatetime
|
Displays the time at which the
version was last updated.
|
Sample Response
The following is the
sample response for the above method:
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/version/8892000000064025">
<result>
<versiondetails>
<documentId>8892000000064025</documentId>
<version>1.0</version>
<updatetime>7 days ago</updatetime>
</versiondetails>
</result>
</response>
Equivalent JSON response
{
"response":
{
"uri": "/api/private/json/version/8892000000064025",
"result":
{
"versiondetail":
{
"documentId":"8000000006005",
"version":"1.0",
"updatetime":"7 days ago"
}
}
}
}
Errors
Displaying version
details of a document method may return general errors. Likely HTTP error code is 1404.