Anubis
Anubis

Reputation: 2624

OneDrive API Link Sharing Options

I'm currently working on an application that interacts with OneDrive. I've read RESTful API manual and the only option available is to share document.

My questions are:

Upvotes: 0

Views: 495

Answers (2)

Anubis
Anubis

Reputation: 2624

The only way to regenerate link to a file is to:

  • Copy file "foo.docx" to "(Copy) foo.docx"
  • Remove file "foo.docx"
  • Rename "(Copy) foo.docx" to "foo.docx"
  • Generate link for "foo.docx"

There is no way to specify emails for document access

There is no way to control this UI option "Recipients need to sign in with Microsoft Account"

Upvotes: 1

Toan-Nguyen
Toan-Nguyen

Reputation: 321

The sharing links that are created do not expire. If you create a sharing link for a file that already shared, a HTTP 200 code will be returned. At this time, createLink is only available but the user can remove the sharing permission from the OneDrive website. Specific user access isn't currently supported. Like the OneDrive website, any created link will not require sign-in. I hope that helps.

Upvotes: 1

Related Questions