My google searches have all led to dead ends.
Is there a way to retrieve the durable link
code for a document using the REST API?
When you copy a link in the GUI, it takes the form of:-
https://mysite.sharepoint.com/sites/mysite/mylibrary/myDocSet?d=w9570bf1d91a541679abbf03996bbbff7
I would like to know how to retrieve the d=....
part, using the SharePoint REST API, given I have the ID of the library item (e.g 847
) and the library location details etc.