|
Home
Get Ticket
Get API Key
API Reference
Projects
Dashboard
Milestones
Tasklists
Meetings
Documents
Timesheet
Forums
Users
Error Codes
|
Documents API
|
|
How to Get All Project Documents ?
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/docs
API Description :
Given
the ticket, apikey, and projectId returns all the documents on
successful
authentication.
Parameters to be passed :
ticket, apikey, projId |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/docs?apikey=[ApiKey]&ticket=[ticket]">
<input type="hidden" name="projId" value=""/>
<input type="hidden" name="auditIndex" value="">
<input type="hidden" name="range" value="">
<input type="submit" value="Get Project Documents">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/project/docs</uri>
| - |
<result>
| - |
<DocumentDetails>
| - |
<DocumentDetail>
<doc_id>LRMRg7/jxbP3/KUvuKQOvg==</doc_id>
<doc_name>api.html</doc_name>
<filename>api.html</filename>
<contenttype>text/html</contenttype>
<lastupload> yyyy-mm-dd HH:MM</lastupload>
</DocumentDetail> |
| - |
<DocumentVerDetail>
<version>1.1</version>
<versionlabel>no label</versionlabel>
<login_uid>Mjh+pwI9Q5M=</login_uid>
<loginname>Kannan.S</loginname>
<docsize>10419</docsize>
<doccomment>html for documentation of api</doccomment>
</DocumentVerDetail> |
</DocumentDetails> |
|
</result> |
</response> |
| Output JSON |
{response:{uri:'/api/private/xml/project/docs',result:{documentdetails:{documentdetail:{doc_id:'LRMRg7/jxbP3/KUvuKQOvg==',doc_name:'api.html',filename:'api.html',contenttype:'text/html',lastupload: yyyy-mm-dd HH:MM },documentverdetail:{version:1.1,versionlabel:'nolabel',login_uid:'Mjh+pwI9Q5M=',loginname:'Kannan.S',docsize:10419,doccomment:'htmlfordocumentationofapi'}}}}}
|
How to Get Version Details of a Document ?
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/version/
API Description :
Given
the ticket, apikey, projId, docid and version or (Allversions) of the
document returns the details of the versioned document on successful
authentication.
Parameters to be passed :
ticket, apikey, projId,docId and version |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/version?apikey=[ApiKey]&ticket=[ticket]">
Project Id:<input type="text" name="projId" value="">
DocId:<input type="text" name="docId" value="">
(Specific version number gives details about the specific version or
"allversions" gives details about all the versions)
Version:<input type="text" name="ver" value="">
<input type="submit" value="Get Versioned Document">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/doc/version</uri>
| - |
<result>
| - |
<DocumentDetails>
| - |
<DocumentDetail>
<doc_id>LRMRg7/jxbP3/KUvuKQOvg==</doc_id>
<doc_name>Api.html</doc_name>
<filename>Api.html</filename>
<contenttype>text/html</contenttype>
<lastupload> yyyy-mm-dd HH:MM </lastupload>
</DocumentDetail> |
| - |
<DocumentVerDetail>
<version>1.3</version>
<versionlabel>no label</versionlabel>
<loginname>Mjh+pwI9Q5M=</loginname>
<docsize>170</docsize>
<doccomment>Uploaded by Vijay.PS</doccomment>
</DocumentVerDetail> |
| - |
<DocumentVerDetail>
<version>1.2</version>
<versionlabel>no label</versionlabel>
<loginname>Mjh+pwI9Q5M=</loginname>
<docsize>170</docsize>
<doccomment>Uploaded by Kannan.S</doccomment>
</DocumentVerDetail> |
| - |
<DocumentVerDetail>
<version>1.1</version>
<versionlabel>no label</versionlabel>
<loginname>Mjh+pwI9Q5M=</loginname>
<docsize>170</docsize>
<doccomment>uploaded by Suchitra.S</doccomment>
</DocumentVerDetail> |
</DocumentDetails> |
|
</result> |
</response> |
| Output JSON |
{response:{uri:'/api/private/xml/doc/version',result:{documentdetails:{documentdetail:{doc_id:'LRMRg7/jxbP3/KUvuKQOvg==',doc_name:'Api.html',filename:'Api.html',contenttype:'text/html',lastupload: yyyy-mm-dd HH:MM },documentverdetail:[{version:1.3,versionlabel:'nolabel',loginname:'Mjh+pwI9Q5M=',docsize:170,doccomment:'UploadedbyVijay.PS'},{version:1.2,versionlabel:'nolabel',loginname:'Mjh+pwI9Q5M=',docsize:170,doccomment:'UploadedbyKannan.S'},{version:1.1,versionlabel:'nolabel',loginname:'Mjh+pwI9Q5M=',docsize:170,doccomment:'uploadedbySuchitra.S'}]}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/add
API Description :
Given the ticket, apikey , projid,filecomment,folderId,tags and the file uploads the file on successful authentication.
Parameters to be passed :
ticket, apikey,projId,name,folderid,tags,uploadstat |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/add?apikey=[ApiKey]&ticket=[ticket]"enctype="multipart/form-data">
ProjectId<input type="text" name="projId" value=""/>
DocumentName<input type="text" name="docname" value=""/>
FolderId<input type="text" name="folderid" value="">
Tags<input type="text" name="tags" value="">
Select file<input name="uploaddoc" class="titlebox" size="50" type="file">
<input type="submit" value="Add New Document">
</form> |
| Output XML |
| <result>Request processed successfully.</result> |
| Output JSON |
{result:'Request processed successfully.'}
|
How to Upload Versioned Document ?
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/add
API Description :
Given the ticket, apikey,projectId,docname,folderid,tag,documentid,uploadstat(as update) uploads the next version on successful
authentication.
Parameters to be passed :
ticket, apikey, projectId,docname,folderId,tag,uploadstat as update,documentId and the file |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/updlatestver?apikey=[ApiKey]&ticket=[ticket]"
enctype="multipart/form-data">
ProjectId<input type="text" name="projId" value=""/>
File Comment<input type="text" name="docname" value=""/>
FolderId<input type="text" name="folderid" value="">
Tags<input type="text" name="tags" value="">
DocumentId<input type="text" name="docid" value="">
Select file<input name="uploaddoc" type="file">
<input type="submit" value="upload Next Version">
</form> |
| Output XML |
| <result>Request processed successfully.</result> |
| Output JSON |
{result:'Request processed successfully.'}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/update
API Description :
Given the ticket, apikey,projectId,tag and documentid edits the tag on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,tag and documentId |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/update?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
DocId<input type="text" name="docId" value=""/>
Tag<input type="text" name="tags" value="">
<input type="submit" value="Edit Tag">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/doc/update</uri>
| - |
<result>
| - |
<DocumentDetails>
| - |
<DocumentTagDetail>
<tag_id>LRMRg7/jxbMbNJLkAZf07Q==</tag_id>
<filetag_id>LRMRg7/jxbOPxr+7U0MPcQ==</filetag_id>
<documentid>LRMRg7/jxbP3/KUvuKQOvg==</documentid>
</DocumentTagDetail> |
</DocumentDetails> |
</result> |
</response> |
| Output JSON |
{response:{uri:'/api/private/xml/doc/update',result:{documentdetails:{documenttagdetail:{tag_id:'LRMRg7/jxbMbNJLkAZf07Q==',filetag_id:'LRMRg7/jxbOPxr+7U0MPcQ==',documentid:'LRMRg7/jxbP3/KUvuKQOvg=='}}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/filetags
API Description :
Given the ticket, apikey,projectId returns the tag details on successful authentication.
Parameters to be passed :
ticket, apikey, projectId |
| Sample Call |
<form method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/filetags?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
<input type="submit" value="Get Tags">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/project/doc/filetags</uri>
| - |
<result>
<DocumentTagDetails>
| - |
<DocumentTagDetail>
<tag_id>LRMRg7/jxbMbNJLkAZf07Q==</tag_id>
<filetag_id>LRMRg7/jxbM26uMQOdNKEQ==</filetag_id>
<document_id>LRMRg7/jxbPNXhGBbUi3PQ==</document_id>
<tag_id>LRMRg7/jxbMbNJLkAZf07Q==</tag_id>
<tag_name>Important</tag_name>
</DocumentTagDetail> |
| - |
<DocumentTagDetail>
<tag_id>LRMRg7/jxbMbNJLkAZf07Q==</tag_id>
<filetag_id>LRMRg7/jxbMsw9ky85V00Q==</filetag_id>
<document_id>LRMRg7/jxbM1jEB+8t1iWA==</document_id>
<tag_id>LRMRg7/jxbMbNJLkAZf07Q==</tag_id>
<tag_name>privacy</tag_name>
</DocumentTagDetail> |
</DocumentTagDetails> |
</result> |
</response> |
| Output JSON |
{response:{uri:'/api/private/xml/project/doc/filetags',result:{documenttagdetails:{documenttagdetail:[{tag_id:['LRMRg7/jxbMbNJLkAZf07Q==','LRMRg7/jxbMbNJLkAZf07Q=='],filetag_id:'LRMRg7/jxbM26uMQOdNKEQ==',document_id:'LRMRg7/jxbPNXhGBbUi3PQ==',tag_name:'Important'},{tag_id:['LRMRg7/jxbMbNJLkAZf07Q==','LRMRg7/jxbMbNJLkAZf07Q=='],filetag_id:'LRMRg7/jxbMsw9ky85V00Q==',document_id:'LRMRg7/jxbM1jEB+8t1iWA==',tag_name:'privacy'}]}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/delete
API Description :
Given the ticket, apikey,projectId,fileid,folderid,filename deletes a file on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,fileid,folderid |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/delete?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
Fileid<input type="text" name="fileid" value=""/>
Folderid<input type="text" name="folderid" value="">
<input type="submit" value="Delete File" name="submit">
</form> |
| Output XML |
| <result>Request processed successfully.</result> |
| Output JSON |
{result:'Request processed successfully.'}
|
How to Get Documents in a Folder ?
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/getflddocs
API Description :
Given the ticket, apikey,projectId,folderid gets the documents in the folder on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,folderid |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/getflddocs?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="hidden" name="projId" value=""/>
Folderid<input type="hidden" name="folderid" value="">
<input type="hidden" name="auditIndex" value="">
<input type="hidden" name="range" value="">
<input type="submit" value="Get Folder Docs">
</form> |
| Output XML |
<response>
<uri>/api/private/xmldoc/getflddocs</uri>
| - |
<result>
<DocumentDetails>
| - |
<DocumentDetail>
<doc_id>LRMRg7/jxbPs3+q9JdRfow==</doc_id>
<doc_name>test.doc</doc_name>
<filename>test.doc</filename>
<contenttype>application/msword</contenttype>
<lastupload> yyyy-mm-dd HH:MM</lastupload>
| - |
<DocumentFolderDetail>
<folder_id>LRMRg7/jxbP8YP+k7cTMCg==</folder_id>
<folder_name>Created thro API</folder_name>
<isprojdiscfolder>false</isprojdiscfolder>
<is_private>false</is_private>
</DocumentFolderDetail> |
</DocumentDetail> |
|
</result> |
</response> |
| Output JSON |
{response:{uri:'/api/private/xmldoc/getflddocs',result:{documentdetails:{documentdetail:{doc_id:'LRMRg7/jxbPs3+q9JdRfow==',doc_name:'test.doc',filename:'test.doc',contenttype:'application/msword',lastupload: yyyy-mm-dd HH:MM,documentfolderdetail:{folder_id:'LRMRg7/jxbP8YP+k7cTMCg==',folder_name:'CreatedthroAPI',isprojdiscfolder:'false',is_private:'false'}}}}}}
|
How to Download Documents ?
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/dloadfile
API Description :
Given
the ticket,
apikey,projectId,folderid,contenttype,filename,version,documentid,projectstatus
returns the url to download the document on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,folderid,contenttype,filename,version,documentid,projectstatus |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/doc/dloadfile?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
Folderid<input type="text" name="folderid" value="">
FileName<input type="text" value="" name="filename">
Version<input type="text" value="" name="ver">
DocId<input type="text" value="" name="docId">
<input type="submit" value="Download File">
</form> |
| Output XML |
<result>
http://projects.zoho.com/portal/{PortalName}/saveAttachment/031_l.jpg?file=b4s5ePmHlWT3Q%2B6TCP%2BOxUy6WWiiKU%2Fs
</result>
|
| Output JSON |
{result:'http://projects.zoho.com/portal/{PortalName}/saveAttachment/031_l.jpg?file=b4s5ePmHlWT3Q%2B6TCP%2BOxUy6WWiiKU%2Fs'}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/docflds
API Description :
Given the ticket, apikey,projectId gets the folders on successful authentication.
Parameters to be passed :
ticket, apikey, projectId |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/docflds?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
<input type="submit" value="Get ProjFolders">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/docflds</uri>
| - |
<result>
| - |
<FolderDetails>
| - |
<FolderDetail>
<folder_id>LRMRg7/jxbP8YP+k7cTMCg==</folder_id>
<folder_name>Privacy</folder_name>
<isprojdiscfolder>false</isprojdiscfolder>
</FolderDetail> |
| - |
<FolderDetail>
<folder_id>LRMRg7/jxuioYP+k7cTMCg==</folder_id>
<folder_name>Discussion</folder_name>
<isprojdiscfolder>true</isprojdiscfolder>
</FolderDetail> |
</FolderDetails> |
</result> |
</response>
|
| Output JSON |
{response:{uri:'/api/private/xml/docflds',result:{folderdetails:{folderdetail:[{folder_id:'LRMRg7/jxbP8YP+k7cTMCg==',folder_name:'Privacy',isprojdiscfolder:'false'},{folder_id:'LRMRg7/jxuioYP+k7cTMCg==',folder_name:'Discussion',isprojdiscfolder:'true'}]}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/add/
API Description :
Given the ticket, apikey,projectId and the foldername adds the folder on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,foldername |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/add?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
Fld Name<input type="text" name="fldName" value="">
<input type="submit" value="Add Folders">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/docfld/add/</uri>
| - |
<result>
| - |
<FolderDetails>
| - |
<FolderDetail>
<folder_id>LRMRg7/jxbMbNJLkAZf07Q==</folder_id>
<folder_name>Document Folder</folder_name>
<isprojdiscfolder>false</isprojdiscfolder>
</FolderDetail> |
</FolderDetails> |
</result> |
</response>
|
| Output JSON |
{response:{uri:'/api/private/xml/docfld/add/',result:{folderdetails:{folderdetail:{folder_id:'LRMRg7/jxbMbNJLkAZf07Q==',folder_name:'DocumentFolder',isprojdiscfolder:'false'}}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/update/
API Description :
Given the ticket, apikey,projectId,folderId and the foldername adds the folder on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,folderId,foldername |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/update?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
Fld Name<input type="text" name="fldName" value="">
Folder ID<input type="text" name="fldid" value="">
<input type="submit" value="update Folder Name">
</form> |
| Output XML |
<response>
<uri>/api/private/xml/docfld/update/</uri>
| - |
<result>
| - |
<FolderDetails>
| - |
<FolderDetail>
<folder_id>LRMRg7/jxbMbNJLkAZf07Q==</folder_id>
<folder_name>document folder updated</folder_name>
<isprojdiscfolder>false</isprojdiscfolder>
</FolderDetail> |
</FolderDetails> |
</result> |
</response>
|
| Output JSON |
{response:{uri:'/api/private/xml/docfld/update/',result:{folderdetails:{folderdetail:{folder_id:'LRMRg7/jxbMbNJLkAZf07Q==',folder_name:'documentfolderupdated',isprojdiscfolder:'false'}}}}}
|
|
Method Name :
http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/delete
API Description :
Given the ticket, apikey,projectId,folderId deletes the folder on successful authentication.
Parameters to be passed :
ticket, apikey, projectId,folderId |
| Sample Call |
<form
method="post"
action="http://projects.zoho.com/portal/{PortalName}/api/private/xml/docfld/delete?apikey=[ApiKey]&ticket=[ticket]">
ProjectId<input type="text" name="projId" value=""/>
Folder ID<input type="text" name="fldid" value="">
<input type="submit" value="Delete Folder">
</form> |
| Output XML |
<result>
Request processed successfully
</result> |
| Output JSON |
{result:'Request processed successfully'}
|
|
|