Retrieve the watermark for a file.
This operation is performed by calling function getFileWatermark.
See the endpoint docs at API Reference.
try await client.fileWatermarks.getFileWatermark(fileId: file.id)
- fileId
String- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/files/123thefile_idis123. Example: "12345"
- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
- headers
GetFileWatermarkHeaders- Headers of getFileWatermark method
This function returns a value of type Watermark.
Returns an object containing information about the watermark associated for to this file.
Applies or update a watermark on a file.
This operation is performed by calling function updateFileWatermark.
See the endpoint docs at API Reference.
try await client.fileWatermarks.updateFileWatermark(fileId: file.id, requestBody: UpdateFileWatermarkRequestBody(watermark: UpdateFileWatermarkRequestBodyWatermarkField(imprint: UpdateFileWatermarkRequestBodyWatermarkImprintField.default_)))
- fileId
String- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/files/123thefile_idis123. Example: "12345"
- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
- requestBody
UpdateFileWatermarkRequestBody- Request body of updateFileWatermark method
- headers
UpdateFileWatermarkHeaders- Headers of updateFileWatermark method
This function returns a value of type Watermark.
Returns an updated watermark if a watermark already existed on this file.Returns a new watermark if no watermark existed on this file yet.
Removes the watermark from a file.
This operation is performed by calling function deleteFileWatermark.
See the endpoint docs at API Reference.
try await client.fileWatermarks.deleteFileWatermark(fileId: file.id)
- fileId
String- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/files/123thefile_idis123. Example: "12345"
- The unique identifier that represents a file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL
- headers
DeleteFileWatermarkHeaders- Headers of deleteFileWatermark method
This function returns a value of type ``.
Removes the watermark and returns an empty response.