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

Comments

3 comments

  • LoCortes

    Hello ,

    shared links are tight to the document, not to versions, so when you create a shared link it is used across all the new versions being generated.

     

    If you create a document V1 and a shared link pointing to it, the user that has that link will access to the released version not to the one it was generated.

     

     

    Thanks

    0
    Comment actions Permalink
  • Box Product Support

    Hi,   

    Thanks for the quick reply! It makes sense,  but in that case, do you know if there is a way to get a static link for each version?

     

    I need to support versioning in my app, and I now that I could get a download link for a specific version by making an API call to the Download endpoint.The problem with this is that it's non-static so I have to make a call every time I want to download, but I would be much simpler if I could store a link for each version. Do you know a way to do this?

     

    0
    Comment actions Permalink
  • LoCortes

    Hello ,

     

    I was looking at all the information available on the reference docs but I did not find anything useful on that sense. I would risk to say that there is no support for that. At least I only saw that it is possible to download different versions but links are linked 

     

    I have done tests with the following URLs:

     

    http://api.box.com/2.0/files/${"DOCUMENT"}?fields=expiring_embed_link&version=${"DOCUMENT_VERSION"}

     

    http://api.box.com/2.0/files/${"DOCUMENT"}?fields=shared_link&version=${"DOCUMENT_VERSION"}

     

    With no luck. So... I guess it is not possible. I could download it as you have done probably but nothing else.

     

    Sorry. I can not help further. Hope somebody from BOX side can confirm my guess that this is not offered at the moment.

     

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.