フォルダの電子すかしを適用または更新します。
curl -i -X PUT "https://api.box.com/2.0/folders/4353455/watermark" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"watermark": {
"imprint": "default"
}
}'
await client.folderWatermarks.updateFolderWatermark(folder.id, {
watermark: new UpdateFolderWatermarkRequestBodyWatermarkField({
imprint: 'default' as UpdateFolderWatermarkRequestBodyWatermarkImprintField,
}),
} satisfies UpdateFolderWatermarkRequestBody);
client.folder_watermarks.update_folder_watermark(
folder.id,
UpdateFolderWatermarkWatermark(
imprint=UpdateFolderWatermarkWatermarkImprintField.DEFAULT
),
)
await client.FolderWatermarks.UpdateFolderWatermarkAsync(folderId: folder.Id, requestBody: new UpdateFolderWatermarkRequestBody(watermark: new UpdateFolderWatermarkRequestBodyWatermarkField(imprint: UpdateFolderWatermarkRequestBodyWatermarkImprintField.Default)));
BoxFolder folder = new BoxFolder(api, id);
fodler.applyWatermark();
watermark = client.folder(folder_id='11111').apply_watermark()
print(f'Watermark created at {watermark.created_at} and modified at {watermark.modified_at}')
BoxWatermark watermark = await client.FoldersManager.ApplyWatermarkAsync("22222");
client.folders.applyWatermark('22222')
.then(watermark => {
/* watermark -> {
watermark:
{ created_at: '2016-10-31T15:33:33-07:00',
modified_at: '2016-10-31T15:33:33-07:00' } }
*/
});
{
"watermark": {
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
}