Get folder info
OVERVIEW
This is the latest version of this API, for older versions please check the child pages
Get a folder’s metadata by folder ID.
Request
GET /api/1/folders/{folderid}
Parameters
Parameter Name | Value | Description |
---|---|---|
folderid | Int | The ID for the folder in question |
Request body
Do not supply a request body with this method.
Response XML:
<folder>
<id>3074</id>
<name>Root</name>
<permission>
<view>1</view>
<edit>1</edit>
<delete>0</delete>
<addEditAllFiles>1</addEditAllFiles> <!-- ( Permission Element in API version 2 (supported from 4.0.3 branch)) -->
<viewAllFiles>1</viewAllFiles>
<admin>1</admin>
</permission>
<siteid>1</siteid> (this attribute supported from 3.4.3)
<parentFolderID>9</parentFolderID>
<accessInherited>1</accessInherited> <!-- (supported from 4.0.3 branch) -->
<description>file 1 description</description>
<createddate>20 May 2014 10:12</createddate>
<modifieddate>12 Jun 2014 12:02</modifieddate>
<location>Deleted Items</location> <!-- (supported from 3.4.4 branch) -->
<dms>
<dmsfolderid>1001</dmsfolderid>
<dmsParentFolderID>0</dmsParentFolderID>
<dmscreateddate>2014-05-20T10:12:32.177+05:30</dmscreateddate>
<dmsmodifiedBy>103</dmsmodifiedBy>
<dmsdatabasename>username</dmsdatabasename>
</dms>
<createdby>
<firstname>first</firstname>
<lastname>last</lastname>
<email>first.last@highq.com</email>
<userid>103</userid>
</createdby>
<modifiedby>
<firstname>first</firstname>
<lastname>last</lastname>
<email>first.last@highq.com</email>
<userid>103</userid>
</modifiedby>
<contentstatus>0</contentstatus> <!-- (Tag has been in 4.1.3 ) -->
</folder>
Notes:
Please note that the permissions element in the response body has been introduced in Collaborate 4.0.3. The permissions element provides the caller's permissions for that folder.
A value of 1 means that the user has that specific permission e.g "view" and a value of 0 means that the user does not have the specific permission for the folder. The permission names are inline with the folder permissions as configured through the site admin interface. The addEditAllFiles and viewAllFiles relate to files in the folder where as the rest of the permission relate to the folder itself.
"accessInherited" field indicates if the folder has inherited the permissions from its parent folder or not.
Response Code:
Following HTTP code will be returned to the calling client:
Code | Meaning |
---|---|
401 | Unauthorized |
403 | Validation failed/ Forbidden |
405 | Method not allowed (calling api with wrong method) |
500 | Internal error occurred |
Comments
0 Comments