- Find folder for shared link
- Get shared link for folder
- Add shared link to folder
- Update shared link on folder
- Remove shared link from folder
Return the folder represented by a shared link.
A shared folder can be represented by a shared link, which can originate within the current enterprise or within another.
This endpoint allows an application to retrieve information about a shared folder when only given a shared link.
This operation is performed by calling function FindFolderForSharedLink
.
See the endpoint docs at API Reference.
await userClient.SharedLinksFolders.FindFolderForSharedLinkAsync(queryParams: new FindFolderForSharedLinkQueryParams(), headers: new FindFolderForSharedLinkHeaders(boxapi: string.Concat("shared_link=", NullableUtils.Unwrap(folderFromApi.SharedLink).Url, "&shared_link_password=Secret123@")));
- queryParams
FindFolderForSharedLinkQueryParams
- Query parameters of findFolderForSharedLink method
- headers
FindFolderForSharedLinkHeaders
- Headers of findFolderForSharedLink method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FolderFull
.
Returns a full folder resource if the shared link is valid and the user has access to it.
Gets the information for a shared link on a folder.
This operation is performed by calling function GetSharedLinkForFolder
.
See the endpoint docs at API Reference.
await client.SharedLinksFolders.GetSharedLinkForFolderAsync(folderId: folder.Id, queryParams: new GetSharedLinkForFolderQueryParams(fields: "shared_link"));
- folderId
string
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
. Example: "12345"
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
- queryParams
GetSharedLinkForFolderQueryParams
- Query parameters of getSharedLinkForFolder method
- headers
GetSharedLinkForFolderHeaders
- Headers of getSharedLinkForFolder method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FolderFull
.
Returns the base representation of a folder with the additional shared link information.
Adds a shared link to a folder.
This operation is performed by calling function AddShareLinkToFolder
.
See the endpoint docs at API Reference.
await client.SharedLinksFolders.AddShareLinkToFolderAsync(folderId: folder.Id, requestBody: new AddShareLinkToFolderRequestBody() { SharedLink = new AddShareLinkToFolderRequestBodySharedLinkField() { Access = AddShareLinkToFolderRequestBodySharedLinkAccessField.Open, Password = "Secret123@" } }, queryParams: new AddShareLinkToFolderQueryParams(fields: "shared_link"));
- folderId
string
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
. Example: "12345"
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
- requestBody
AddShareLinkToFolderRequestBody
- Request body of addShareLinkToFolder method
- queryParams
AddShareLinkToFolderQueryParams
- Query parameters of addShareLinkToFolder method
- headers
AddShareLinkToFolderHeaders
- Headers of addShareLinkToFolder method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FolderFull
.
Returns the base representation of a folder with a new shared link attached.
Updates a shared link on a folder.
This operation is performed by calling function UpdateSharedLinkOnFolder
.
See the endpoint docs at API Reference.
await client.SharedLinksFolders.UpdateSharedLinkOnFolderAsync(folderId: folder.Id, requestBody: new UpdateSharedLinkOnFolderRequestBody() { SharedLink = new UpdateSharedLinkOnFolderRequestBodySharedLinkField() { Access = UpdateSharedLinkOnFolderRequestBodySharedLinkAccessField.Collaborators } }, queryParams: new UpdateSharedLinkOnFolderQueryParams(fields: "shared_link"));
- folderId
string
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
. Example: "12345"
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
- requestBody
UpdateSharedLinkOnFolderRequestBody
- Request body of updateSharedLinkOnFolder method
- queryParams
UpdateSharedLinkOnFolderQueryParams
- Query parameters of updateSharedLinkOnFolder method
- headers
UpdateSharedLinkOnFolderHeaders
- Headers of updateSharedLinkOnFolder method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FolderFull
.
Returns a basic representation of the folder, with the updated shared link attached.
Removes a shared link from a folder.
This operation is performed by calling function RemoveSharedLinkFromFolder
.
See the endpoint docs at API Reference.
Currently we don't have an example for calling RemoveSharedLinkFromFolder
in integration tests
- folderId
string
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
. Example: "12345"
- The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
- requestBody
RemoveSharedLinkFromFolderRequestBody
- Request body of removeSharedLinkFromFolder method
- queryParams
RemoveSharedLinkFromFolderQueryParams
- Query parameters of removeSharedLinkFromFolder method
- headers
RemoveSharedLinkFromFolderHeaders
- Headers of removeSharedLinkFromFolder method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FolderFull
.
Returns a basic representation of a folder, with the shared link removed.