Microsoft Graph API URL

Jericho Viejo 60 Reputation points
2023-09-06T16:37:40.5066667+00:00

Good day,

We are performing graph api requests, and we've recently moved the site page of sharepoint, so we need to update the URL.

https://graph.microsoft.com/v1.0/sites/mysite.sharepoint.com,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx,yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/lists/zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz/items/aaa?expand=fields

This is a question about the sharepoint interface. How do we find the "x" and the "y" parts for the site page guid? The "z" part is easy to find.

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-09-07T01:29:25.13+00:00

    HI @Jericho Viejo ,

    Here is a test for your reference:

    Please get the ID of the site first

    Here is graph explorer:

    https://developer.microsoft.com/en-us/graph/graph-explorer

    https://graph.microsoft.com/v1.0/sites/<hostname>.sharepoint.com:/sites/<sitename>

    Get id from response User's image

    Get list id from list setting:

    User's image

    Get list id from URLUser's image

    Here is result:

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.