cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CreateSharedLinkWithSettingsErrorException existing URL / name

CreateSharedLinkWithSettingsErrorException existing URL / name

Holger K.
New member | Level 2

If the following code throws the exception
CreateSharedLinkWithSettingsErrorException

 

How can I get the existing URL and name?

 

SharedLinkMetadata slm = mDbxClient.sharing().createSharedLinkWithSettings(remoteFolderPath + "/" + remoteFileName, SharedLinkSettings.newBuilder().withRequestedVisibility(RequestedVisibility.PUBLIC).build());
url = slm.getUrl();
ResolvedVisibility res = slm.getLinkPermissions().getResolvedVisibility();
name = slm.getName();
 

1 Reply 1

Greg-DB
Dropbox Staff

You can use listSharedLinksBuilder to get the existing shared link for a file or folder. (If you're only interested in links to the exact path, you'll want to use withDirectOnly(true).)

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?