Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/file_requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Get a File Request's Information

Calling [`getInfo()`][get-info] returns information on a file request.

<!-- sample get_file_requests_id -->
```java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.getInfo();
Expand All @@ -32,6 +33,7 @@ Calling [`copyInfo(String folderId)`][copy-info] copies an existing file reques
on one folder, and applies it to another folder. If you want to set certain fields of the newly copied file request when it is created,
set those fields in the `BoxFileRequest.Info` that you pass into this method [`copyInfo(BoxFileRequest.Info info, String folderId)`][copy-info].

<!-- sample post_file_requests_id_copy -->
```java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.new Info();
Expand All @@ -49,6 +51,7 @@ Update a File Request's Information
Calling [`updateInfo(BoxFileRequest.Info info)`][update-info] updates a file request. This can be used to activate
or deactivate a file request.

<!-- sample put_file_requests_id -->
```java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.new Info();
Expand All @@ -65,6 +68,7 @@ Delete a File Request

Calling [`delete()`][delete] deletes a file request permanently.

<!-- sample delete_file_requests_id -->
```java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
fileRequest.delete();
Expand Down