Skip to main content
Question

Problem Uploading a document and creating a shared link.

  • May 22, 2025
  • 2 replies
  • 43 views

Forum|alt.badge.img

Hello -

I am using the API to upload a document and then create a shared link. I am using the enterprise auth token for both operations. The file is uploaded fine, but when I try to create the shared link, I get the following message.

"status":403,"code":"access_denied_insufficient_permissions"

I thought maybe I could only create the shared link with an app user, so I created an app user, assigned it editor permission to the file, and then tried to create the link and I get the same error.

Here is the shared link object that I passing to the routine...

var shared_link = new

{

shared_link = new

{

access = "open",

password = "null"

}

};

Any help would be appreciated.

Thanks!

2 replies

Forum|alt.badge.img

Hello ,

 

which language are you using? have you try to use curl or something similar?

 

Why do you have the variable shared_link twice on that snippet of code?

 

Regards


Forum|alt.badge.img

Thanks for your reply. I am using Asp.net. The shared_link is an object that contains the parameters for the web service call. It essentially resolves the following json...

{\"shared_link\":{\"access\":\"open\",\"password\":\"null\"}}

 

This code was calling the end point directly, but I was able to upload to a file and assign a shared link using the asp.net SDK.