Get Folder Public Link
get
/documents/api/1.1/publiclinks/folder/{folderId}
Return a list of the public links for a specified folder.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
- folderId
-
Type:
stringRequired:trueGlobally unique identifier (GUID) for the folder.
Response
Supported Media Types
- application/json
- application/xml
200 Response
The request was fulfilled.
Body
The response body includes information about public links defined for the specified folder.
Root Schema : FolderLinksResponse
The response body includes information about public links defined for the specified folder.
- count
-
Type:
stringThe number of items listed on the page. - errorCode
-
Type:
stringAn error code of zero (0) indicates no errors. - id
-
Type:
stringGlobally unique identifier (GUID) for the folder. - items
-
Type:
arrayitemsAdditional Properties Allowed:List of public links. - type
-
Type:
stringItem typefolder.
Nested Schema : items
Type:
arrayList of public links.
-
Type:
objectPublicLinkDefinitionAdditional Properties Allowed:Public link information.
Nested Schema : PublicLinkDefinition
Public link information.
- assignedUsers
-
Type:
stringThe group of users who can use the link. - createdTime
-
Type:
stringDate and time when the public link was created. - expirationTime
-
Type:
stringDate and time when the public link expires. - lastModifiedTime
-
Type:
stringDate and time when the public link was last modified. - linkID
-
Type:
stringGlobally unique identifier (GUID) for the public link. - linkName
-
Type:
stringName of the public link. - ownedBy
-
Type:
objectUserAdditional Properties Allowed:User information - password
-
Type:
stringPassword for the public link. Use a minimum of 8 characters and a maximum of 50 characters. Passwords are case-sensitive. - role
-
Type:
stringAllowed Values:[ "viewer", "downloader", "contributor" ]Access level for the shared item. - type
-
Type:
stringItem typepubliclink.
Nested Schema : User
User information
- displayName
-
Type:
stringThe display name for the user. - id
-
Type:
stringGlobally unique identifier (GUID) for the user. - type
-
Type:
stringItem typeuser.
Example application/json
{
"count":"2",
"id":"F4E111D0D0645CD368453C2BT0000000000100000001",
"type":"folder",
"errorCode":"0",
"items":[
{
"linkID":"LF31C09DE51854DBBDA37A90T0000000000100000001",
"linkName":"hasSecondLink",
"assignedUsers":"@everybody",
"role":"viewer",
"type":"publiclink",
"createdTime":"2015-06-02T19:30:37Z",
"lastModifiedTime":"2015-06-02T19:30:37Z",
"ownedBy":{
"id":"U0EAA20910FAF3052ACB79E4T00000000001",
"displayName":"User AA",
"type":"user"
}
},
{
"linkID":"LF5E5F73A444FFB8924EF8ACT0000000000100000001",
"linkName":"hasFirstLink",
"assignedUsers":"@serviceinstance",
"role":"contributor",
"type":"publiclink",
"createdTime":"2015-06-10T16:15:37Z",
"lastModifiedTime":"2015-06-10T16:15:37Z",
"ownedBy":{
"id":"U0EAA20910FAF3052ACB79E4T00000000001",
"displayName":"User AA",
"type":"user"
}
}
]
}
400 Response
Request parameters are not formatted correctly.
403 Response
Forbidden if the user does not have read permission.
404 Response
Folder ID is not found.
Examples
The following example returns information about public links defined for the specified folder.
GET .../publiclinks/folder/F4E111D0D0645CD368453C2BT0000000000100000001
Request Header
None.
Request Body
None.
HTTP Status Code
HTTP_STATUS = 200
JSON Response
{
"count": "2",
"errorCode": "0",
"id": "F4E111D0D0645CD368453C2BT0000000000100000001",
"type": "folder",
"items": [
{
"type": "publiclink",
"linkID": "LF31C09DE51854DBBDA37A90T0000000000100000001",
"linkName": "hasSecondLink",
"ownedBy": {
"displayName": "User AA",
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
"type": "user"
},
"role": "viewer",
"assignedUsers": "@everybody",
"createdTime": "2015-06-02T19:30:37Z",
"lastModifiedTime": "2015-06-02T19:30:37Z"
},
{
"type": "publiclink",
"linkID": "LF5E5F73A444FFB8924EF8ACT0000000000100000001",
"linkName": "hasFirstLink",
"ownedBy": {
"displayName": "User AA",
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
"type": "user"
},
"role": "contributor",
"assignedUsers": "@serviceinstance",
"createdTime": "2015-06-10T16:15:37Z",
"lastModifiedTime": "2015-06-10T16:15:37Z"
}
]
}