Need the SharePoint rest api endpoint for a graph api

Anonymous
2023-01-03T08:56:04.89+00:00

Team,

Need the SharePoint rest API end point for a graph api endpoints. There is some new betta endpoint for graph api on which i need the SP end points.
ex:

https://graph.microsoft.com/beta/sites/ba37d781-3f86-4234-bb6c-c4437978441a/pages/

Need the SP endpoint for this and whether that will be also in beta

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rob Windsor 2,006 Reputation points
    2023-01-03T09:35:29.173+00:00

    The SharePoint API in Microsoft Graph supports the following core scenarios:

    • Access to SharePoint sites, lists, and drives (document libraries)
    • Read-only support for site resources (no ability to create new sites)
    • Read-write support for lists, listItems, and driveItems
    • Address resources by SharePoint ID, URL, or relative path

    Please see the following reference documentation for more information. As you'll see in the screen capture, this documentation is for the v1.0 version of Microsoft Graph.

    Working with SharePoint sites in Microsoft Graph

    275605-image.png

    0 comments No comments

  2. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2023-01-04T01:56:46.823+00:00

    Hi @Anonymous
    The graph api will get the collection of sitePage objects from the site pages list in a site site. All pages in the site are returned (with pagination). Sort alphabetically by name in ascending order. You can use following rest api to get all pages under "sitePages"

    _api/web/lists/getbytitle('Site Pages')/Items  
    

    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.



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.