Skip to main content

Add and Upload File

Apart from individually Adding and Uploading files, you can also make use of a single API to have these two actions performed.

Request URL

https://people.zoho.com/people/api/files/uploadFileMultipart"?uploadfile=<file>&fileName=<fileName>fileDesc=<fileDesc>&fileType=<fileType>&confidential=<confidential>&roleId=<roleId>&catId=<categoryId>&employeeId=<employeeId>&isreportingTo=<isreportingTo>&notifyToall=<notifyToall>&locationId=<locationId>&newCatName=<newCatName>

Header:

Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Request Parameter

upload fileSpecify the upload file
fileName Specify the filename
fileDesc Specify the fileDescription
 
fileType Specify 1 to add Company File (or) Specify 0 to add Hr File
confidential(Company Files)Specify 0 to make Company Files downloadable or Specify 1 to make Company Files non-downloadbale
confidential(HR Files)Specify 0 to make HR Files viewable for Employee or Specify 1 to make HR Files non-viewable for Employee
roleIdSpecify the roleId
catId Specify the filecategoryId
employeeIdSpecify the employeeId
isreportingToSpecify true to tag isreportingto option if reporting can see his/her subordinates files
notifyToallSpecify true to the notifyToall option to sent an email
locationIdSpecify the locationId
newCatNameSpecify the newCategoryname

Request

Copiedhttps://people.zoho.com/people/api/files/uploadFileMultipart"?uploadfile=<file>&fileName=<fileName>fileDesc=<fileDesc>&fileType=<fileType>&confidential=<confidential>&roleId=<roleId>&catId=<categoryId>&employeeId=<employeeId>&isreportingTo=<isreportingTo>&notifyToall=<notifyToall>&locationId=<locationId>&newCatName=<newCatName>

Header

CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf

Response

Copied{"response":{"result":{"FILEID":6000000043065},"message":"Data added successfully","uri":"/api/files/uploadFileMutlipart","status":0}}
Copied<response uri="/api/files/uploadFileMutlipart">
    <status>0</status>
    <message>Data added successfully</message>
    <result>
        <message>Successfully Added</message>
        <FILEID>6000000043065</FILEID>
    </result>
</response>