Is the on-premise Sharepoint API the same as hosted Sharepoint?

Ala Dewberry 20 Reputation points
2024-08-05T16:02:55.5566667+00:00

Hi folks, are the APIs for hosted SharePoint and Sharepoint Server (what I understand to be the name for on-prem Sharepoint) the same? There must be differences in versioning/compatibility. I searched the docs but couldn't find any place where that's tracked.

Thanks!

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2024-08-05T17:02:58.4733333+00:00

    Hi Ala,

    There are definitely differences as SharePoint REST API is used for on-prem (SharePoint Server) and now Microsoft has migrated the cloud to Graph API.

    Use the Microsoft Graph API

    https://learn.microsoft.com/en-us/graph/use-the-api

    Working with SharePoint sites in Microsoft Graph

    https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0

    If you are looking to migrate to the cloud I recommend you get used to Graph API as this is the way for people to interact with M365 services going forward.


    If this is helpful please accept as answer or upvote.

    Best regards,

    Dillon Silzer | Cloudaen.com | Cloudaen Computing Solutions


0 additional answers

Sort by: Most helpful

Your answer

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