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>¬ifyToall=<notifyToall>&locationId=<locationId>&newCatName=<newCatName>
Request Parameters:
authtoken | Specify the authentication token |
fileName | Specify the filename |
filePath | Get the filepath from upload file and specify |
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 |
roleId | Specify the roleId |
catId | Specify the filecategoryId |
employeeId | Specify the employeeId |
isreportingTo | Specify true to tag isreportingto option if reporting can see his/her subordinates files |
notifyToall | Specify true to the notifyToall option to sent an email |
locationId | Specify the locationId |
newCatName | Specify 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"}}