I use the graphics API to iterate over a folder in OneDrive for Business. I am trying to create anonymous browsing links for each item in a folder using the following call:
/v1.0/users('user-guid')/drive/items/item-id/microsoft.graph.createLink
with body:
{
"type": "view",
"scope": "anonymous"
}
This works correctly for items that have already been granted the "View Link - No Login" permission using the OneDrive interface. However, making this call against an element that no longer has this sharing option results in the following return message:
{
"error": {
"code": "unauthenticated",
"message": "The caller is not authenticated.",
"innerError": {
"request-id": "1c3600ec-4861-4be4-9a7b-74264f488a80",
"date": "2016-03-13T02:30:10"
}
}
}
, , ( , ). Microsoft Graph Explorer. "OneDrive" "View link - no sign-in required", . API - , OneDrive.
microsoft.graph.createLink
createLink , . , .
, ?