Edit File API
Request URL
https://people.zoho.com/people/api/files/editFile?fileName=<fileName>&filePath=<filePath>&fileDesc=<fileDesc>&fileType=<fileType>&confidential=<confidential>&roleId=<roleId>&catId=<categoryId>&employeeId=<employeeId>&isreportingTo=<isreportingTo>¬ifyToall=<notifyToall>&locationId=<locationId>&newCatName=<newCatName>&fileId=<fileId>
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Request Parameters;
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 | Specify true to tag an employee confidential file |
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 |
fileId | Specify the fileId you want to edit |
Request
Copiedhttps://people.zoho.com/people/api/files/editFile?fileName=payslip.png&filePath=4319220/1478050780330/FileCabinet/payslip.png&fileDesc=fileapi&fileType=1(or)0&confidential=0&roleId=6000000043061&catId=6000000043062&employeeId=6000000043063&isreportingTo=0(or)1¬ifyToall=true(or)false&locationId=6000000043064&newCatName=editofferletter&fileId=6000000043065
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Response
Copied<response uri="/api/files/editFile">
<status>0</status>
<message>
Data updated successfully
<result>
<message>Successfully Updated</message>
<FILEID>6000000043065</FILEID>
</result>
</response>