Retrieve the watermark for a file.
This operation is performed by calling function getFileWatermark.
See the endpoint docs at API Reference.
await client.fileWatermarks.getFileWatermark(file.id);
string
https://*.app.box.com/files/123 the file_id is 123. Example: “12345”GetFileWatermarkOptionalsInputThis 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.
await client.fileWatermarks.updateFileWatermark(file.id, {
watermark: new UpdateFileWatermarkRequestBodyWatermarkField({
imprint: 'default' as UpdateFileWatermarkRequestBodyWatermarkImprintField,
}),
} satisfies UpdateFileWatermarkRequestBody);
string
https://*.app.box.com/files/123 the file_id is 123. Example: “12345”UpdateFileWatermarkRequestBody
UpdateFileWatermarkOptionalsInputThis 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.
await client.fileWatermarks.deleteFileWatermark(file.id);
string
https://*.app.box.com/files/123 the file_id is 123. Example: “12345”DeleteFileWatermarkOptionalsInputThis function returns a value of type undefined.
Removes the watermark and returns an empty response.