Welcome to the new Box Support website. Check out all the details here on what’s changed.

Shared Link is always null

Answered
New post

Comments

2 comments

  • jcleblanc

    Hi ,

     

    The first thing that I would check on here is whether there are restrictions in the admin settings preventing shared links from being created. If someone with admin permissions goes to the content & sharing section of the admin console you should see something like the following:

     

    sharing.png

     

    Just make sure that the permissions set there will allow you to actually create shared links.

     

    For the cURL command to generate a shared link, you'll want to call the update file endpoint (cURL command on the right side of the screen) and send in the shared link object as you did below.

     

    Hope that helps,

    Jon

    0
    Comment actions Permalink
  • kliger

    Thanks,  !

    We found out that if we create a custom app with Oauth2+JWT authentication, it works.

    Before we were using App Tokens, and that's when the API "fails silently" without creating a shared link. 

    0
    Comment actions Permalink

Please sign in to leave a comment.