Problem Uploading a document and creating a shared link.
AnsweredHello -
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!
-
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.
Please sign in to leave a comment.
Comments
2 comments