Add File API

Request URL

https://people.zoho.com/people/api/files/addFile?authtoken=<token>&fileName=<fileName>&filePath=<filePath>&fileDesc=<fileDesc>&fileType=<fileType>&confidential=<confidential>&roleId=<roleId>&catId=<categoryId>&employeeId=<employeeId>&isreportingTo=<isreportingTo>&notifyToall=<notifyToall>&locationId=<locationId>&newCatName=<newCatName>

Request Parameters:

authtokenSpecify the authentication token
fileNameSpecify the filename
filePathGet the filepath from upload file and specify
fileDescSpecify the fileDescription
fileTypeSpecify 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
catIdSpecify 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/addFile?authtoken=7d985878998943g4j09h43dd0b167dda34b&fileName=offer-letter.png&fileName=offer-letter.png& filePath=4319220/1478050780330/FileCabinet/offerletter.png&fileDesc=fileapi&fileType=1(or)0&confidential=0&roleId=6000000043061&catId=6000000043062&employeeId=6000000043063& isreportingTo=0(or)¬ifyToall=true(or)false&locationId=6000000043064& newCatName=offerletter
Copiedhttps://people.zoho.com/people/api/files/addFile?authtoken=7d985878998943g4j09h43dd0b167dda34b&fileName=offer-letter.png&fileName=offer-letter.png& filePath=4319220/1478050780330/FileCabinet/offerletter.png&fileDesc=fileapi&fileType=1(or)0&confidential=0&roleId=6000000043061&catId=6000000043062&employeeId=6000000043063& isreportingTo=0(or)¬ifyToall=true(or)false&locationId=6000000043064& newCatName=offerletter

Response

Copied<response uri="/api/files/getCategories">
<status>0</status>
<message>Data fetched successfully</message>
<result>
[{"CatID":"3000000012007","CatName":"OfferLetter"},{"CatID":"3000000036001","CatName":"Payslip"},
</result>
</response>
Copied{"response":{"message":"Data fetched successfully","result":{"CatID":3000000012007,"CatName":"OfferLetter"},"status":0,"uri":"/api/files/getCategories"}}