Get information for a File Request
Get information for a File Request
To get details about an existing file request, all you need is its unique ID.
cURL
curl -i -X GET "https://api.box.com/2.0/file_requests/42037322" \
-H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.fileRequests.getFileRequestById(updatedFileRequest.id);
Python Gen
client.file_requests.get_file_request_by_id(updated_file_request.id)
.NET Gen
await client.FileRequests.GetFileRequestByIdAsync(fileRequestId: updatedFileRequest.Id);
Swift Gen (Beta)
try await client.fileRequests.getFileRequestById(fileRequestId: updatedFileRequest.id)
Java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.getInfo();
Python
file_request = client.file_request(file_request_id='123456').get()
print(f'File request {file_request.id} on folder {file_request.folder.name}')
.NET
BoxFileRequestObject fileRequest = await client.FileRequestsManager.GetFileRequestByIdAsync("12345");
Node
client.fileRequests.getById(fileRequestId)
iOS
client.fileRequests.get(fileRequestId: "123456") { result in
guard case let .success(fileRequest) = result else {
print("Error getting file request")
return
}
print("File request title: \(fileRequest.title ?? "n/a"), description: \(fileRequest.description ?? "n/a")")
}