Skip to main content

getFolderLinks

FileShareArrayWrapper getFolderLinks(id)

GET /api/2.0/files/folder/{id}/links

Get folder external links

Lists the external links of a folder or a room, each with its identifier, title, address, rights, expiration date, password flag and download restriction, the primary link among them once it exists. At most the first hundred links are answered and the number returned is reported in the response headers; there are no paging parameters here. A folder that has never been shared by link answers with an empty list, and so does a member who may read the folder but not manage its links - the empty answer therefore means nothing to show you rather than no links exist. A member without access to the room is refused, an anonymous caller is rejected, and a folder that does not exist is answered as not found. The call is read-only. Take an identifier from here to PUT api/2.0/files/folder/{id}/links to change or remove that link, and read the primary one alone with GET api/2.0/files/folder/{id}/link.

Parameters​

NameInTypeDescriptionNotes
idpathInteger (int32)The folder or room whose external links are listed.[required] [example: 1]

Responses​

Status codeDescriptionTypeResponse headers
200The external links of the folder the caller may manageFileShareArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
404The folder does not exist--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

FileShareArrayWrapper

Third-party storage​

For a file or folder in a connected third-party storage the identifier is a string such as sbox-42, and the call differs in these parts only:

NameInTypeDescriptionNotes
idpathStringThe folder or room whose external links are listed.[required] [example: sbox-42]

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json