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.getFileRequestById(fileRequestId);
string
https://*.app.box.com/filerequest/123 the file_request_id is 123. Example: “123”GetFileRequestByIdOptionalsInputThis 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.updateFileRequestById(copiedFileRequest.id, {
title: 'updated title',
description: 'updated description',
} satisfies FileRequestUpdateRequest);
string
https://*.app.box.com/filerequest/123 the file_request_id is 123. Example: “123”FileRequestUpdateRequest
UpdateFileRequestByIdOptionalsInputThis 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.deleteFileRequestById(updatedFileRequest.id);
string
https://*.app.box.com/filerequest/123 the file_request_id is 123. Example: “123”DeleteFileRequestByIdOptionalsInputThis function returns a value of type undefined.
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.createFileRequestCopy(fileRequestId, {
folder: {
id: fileRequest.folder.id,
type: 'folder' as FileRequestCopyRequestFolderTypeField,
} satisfies FileRequestCopyRequestFolderField,
} satisfies FileRequestCopyRequest);
string
https://*.app.box.com/filerequest/123 the file_request_id is 123. Example: “123”FileRequestCopyRequest
CreateFileRequestCopyOptionalsInputThis function returns a value of type FileRequest.
Returns updated file request object.