Skip to main content
Question

I want to know the cause of Update shared link on file bad request

  • May 27, 2025
  • 0 replies
  • 12 views

Forum|alt.badge.img
I wrote the following source code.
But I get a bad reqest on updating the shared link.
Please tell me what is wrong.

box-node-sdk:3.6.0
try {
    const appUserClient = sdk.getAppAuthClient('user', "1469068084");
    await appUserClient.files.update("1579863908562" , { shared_link: {
        permissions: {
            can_preview: true,
            can_download: false,
            can_edit : false
        }}});    
} catch (error) {
    console.log(error);
}



0 replies

Be the first to reply!