How to use Graph API to list Bookmarks by given item id

s w 80 Reputation points
2024-04-17T17:14:42.5666667+00:00

In the Microsoft documentation I found an API call to get a list of bookmarks: https://learn.microsoft.com/en-us/graph/api/search-searchentity-list-bookmarks?view=graph-rest-1.0&tabs=http#request-headers

However when I try the command in the graph explorer, it shows an error (note this is not in beta version) User's image

I just wonder why that happens, did I missing something in my request?

Also if possible, can I pass my site id and item id as parameter to the request, so I can get a list of bookmarks for specific file?

If not, is there a way to get the bookmark information in the sharepoint file by API call?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,606 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,643 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,976 Reputation points
    2024-04-18T10:14:17.3266667+00:00

    Hi @s w

    You need to consent to one of the SearchConfiguration.Read.All or SearchConfiguration.ReadWrite.All delegated permissions, and the logged-in user must have the administrator role.

    User's image

    Also, as far as I know, there is currently no way to get a list of bookmarks for a specific SharePoint file using the graph API.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful