We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
rweckey
2 years agoExplorer | Level 3
JavaScript - I can't get shared_link_already_exists.metadata
Hi,
I want to create a shared link or get a shared link if it already exists with JavaScript.
If the shared link already exists, returned error has only '.tag'.
error: {
...
- 2 years ago
The shared_link_already_exists error is not guaranteed to contain the metadata of the existing link, so you do need to have sharingListSharedLinks implemented for when the existing link is not returned. The shared_link_already_exists error may not the contain the metadata of the existing link if the requested settings do not match the settings of the existing link, for instance. Note that the existing link returned by sharingListSharedLinks may not have the same settings that you requested, so be sure to check that as needed.
Greg-DB
2 years agoDropbox Staff
The shared_link_already_exists error is not guaranteed to contain the metadata of the existing link, so you do need to have sharingListSharedLinks implemented for when the existing link is not returned. The shared_link_already_exists error may not the contain the metadata of the existing link if the requested settings do not match the settings of the existing link, for instance. Note that the existing link returned by sharingListSharedLinks may not have the same settings that you requested, so be sure to check that as needed.
- rweckey2 years agoExplorer | Level 3
Thank you for your response.
The documentation states that shared_link_already_exists is optional, but I could not determine if this behavior is a feature or a bug.
It appears that "metadata" is not returned when the parameter "audience" is set.
I confirmed the same behavior in API Explorer. Sorry for the lack of confirmation.I also understood that I must use sharingListSharedLinks and check the link setting.
It would be nice to have better documentation.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,876 PostsLatest Activity: 5 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!