Retrieves the information about a file request.
This operation is performed by calling function GetFileRequestById
.
See the endpoint docs at API Reference.
await client.FileRequests.GetFileRequestByIdAsync(fileRequestId: fileRequestId);
- fileRequestId
string
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
. Example: "123"
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
- headers
GetFileRequestByIdHeaders
- Headers of getFileRequestById method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FileRequest
.
Returns a file request object.
Updates a file request. This can be used to activate or deactivate a file request.
This operation is performed by calling function UpdateFileRequestById
.
See the endpoint docs at API Reference.
await client.FileRequests.UpdateFileRequestByIdAsync(fileRequestId: copiedFileRequest.Id, requestBody: new FileRequestUpdateRequest() { Title = "updated title", Description = "updated description" });
- fileRequestId
string
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
. Example: "123"
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
- requestBody
FileRequestUpdateRequest
- Request body of updateFileRequestById method
- headers
UpdateFileRequestByIdHeaders
- Headers of updateFileRequestById method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FileRequest
.
Returns the updated file request object.
Deletes a file request permanently.
This operation is performed by calling function DeleteFileRequestById
.
See the endpoint docs at API Reference.
await client.FileRequests.DeleteFileRequestByIdAsync(fileRequestId: updatedFileRequest.Id);
- fileRequestId
string
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
. Example: "123"
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
- headers
DeleteFileRequestByIdHeaders
- Headers of deleteFileRequestById method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type null
.
Returns an empty response when the file request has been successfully deleted.
Copies an existing file request that is already present on one folder, and applies it to another folder.
This operation is performed by calling function CreateFileRequestCopy
.
See the endpoint docs at API Reference.
await client.FileRequests.CreateFileRequestCopyAsync(fileRequestId: fileRequestId, requestBody: new FileRequestCopyRequest(folder: new FileRequestCopyRequestFolderField(id: fileRequest.Folder.Id) { Type = FileRequestCopyRequestFolderTypeField.Folder }));
- fileRequestId
string
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
. Example: "123"
- The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
- requestBody
FileRequestCopyRequest
- Request body of createFileRequestCopy method
- headers
CreateFileRequestCopyHeaders
- Headers of createFileRequestCopy method
- cancellationToken
System.Threading.CancellationToken?
- Token used for request cancellation.
This function returns a value of type FileRequest
.
Returns updated file request object.