•   almost 3 years ago

Create a sharing link for an item in OneDrive - Doesn't work

Pardon me, if I'm posting this issue in the wrong place for discussion...our team running out of time for the submission, hence the post here. Appreciate any help on this.

Issue:
It appears that Create Link requests (Graph API) doesn't work
Used:
POST /drive/items/{item-id}/action.createLink
Here's my request:
POST https://graph.microsoft.com/v1.0/me/drive/items/01TQ4MCY6PXC7SRN5S4NCLNOF7PIN7IJ65/action.createLink
{
"type": "View"
}

Response:
{
"error": {
"code": "BadRequest",
"message": "Unsupported segment type.",
"innerError": {
"request-id": "1954d770-8257-42fb-8c3d-71b7474db07d",
"date": "2016-02-24T01:35:38"
}
}
}

  • 1 comment

  • Moderator   •   almost 3 years ago

    Thanks for your question! I see that it was answered on the Slack channel.
    Serena

Comments are closed.