Retrieve the watermark for a folder.
This operation is performed by calling function getFolderWatermark
.
See the endpoint docs at API Reference.
client.getFolderWatermarks().getFolderWatermark(folder.getId())
- 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
- headers
GetFolderWatermarkHeaders
- Headers of getFolderWatermark method
This function returns a value of type Watermark
.
Returns an object containing information about the watermark associated for to this folder.
Applies or update a watermark on a folder.
This operation is performed by calling function updateFolderWatermark
.
See the endpoint docs at API Reference.
client.getFolderWatermarks().updateFolderWatermark(folder.getId(), new UpdateFolderWatermarkRequestBody(new UpdateFolderWatermarkRequestBodyWatermarkField.UpdateFolderWatermarkRequestBodyWatermarkFieldBuilder().imprint(UpdateFolderWatermarkRequestBodyWatermarkImprintField.DEFAULT).build()))
- 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
UpdateFolderWatermarkRequestBody
- Request body of updateFolderWatermark method
- headers
UpdateFolderWatermarkHeaders
- Headers of updateFolderWatermark method
This function returns a value of type Watermark
.
Returns an updated watermark if a watermark already existed on this folder.Returns a new watermark if no watermark existed on this folder yet.
Removes the watermark from a folder.
This operation is performed by calling function deleteFolderWatermark
.
See the endpoint docs at API Reference.
client.getFolderWatermarks().deleteFolderWatermark(folder.getId())
- 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
- headers
DeleteFolderWatermarkHeaders
- Headers of deleteFolderWatermark method
This function returns a value of type void
.
An empty response will be returned when the watermark was successfully deleted.