getting 404 for GET request after renaming the sharepoint site

Rono, Jacob 21 Reputation points
2022-10-19T11:41:04.57+00:00

I have renamed a sharepoint site URL from sharepoint admin center<tenant>-admin.sharepoint.com . Now, trying to fetch new site URL via graph api . https://graph.microsoft.com/v1.0/groups/{group-id}/sites/root . But it is giving me 404 status. After some time it gave 200.
Is there any fix time interval that is needed for graph api to give latest URL? How long should I wait to get correct result ? Attaching the screenshots below .

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,838 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,938 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2022-10-19T15:29:34.523+00:00

    Hello @Rono, Jacob

    Thanks for reaching out!

    We have performed this use-case testing from our side.

    On modifying SharePoint site URL of a site which is connected to Teams (using SP admin center) and retrieving the same using Graph API gives me the expected results (200 OK) with updated SP site URL in without any delay response.

    As this issue seems to be user specific, I would recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better.

    You can raise support ticket from:
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests .

    Hope this helps.

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

    0 comments No comments

  2. RaytheonXie_MSFT 34,986 Reputation points Microsoft Vendor
    2022-10-20T02:00:55.657+00:00

    Hi @Rono, Jacob
    Per my research, once you change the site https://contoso.sharepoint.com/sites/1 to https://contoso.sharepoint.com/sites/2. The original site will set to read-only, and a redirect is created. After the change is complete, users are redirected to the new URL if they've saved the site as a favorite, or if they select a link to the site. The speed of the progress depends on the size of your site, usually it will take about 10 minutes.

    Here is the document for more details
    https://learn.microsoft.com/en-us/sharepoint/change-site-address


    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 Answers by the question author, which helps users to know the answer solved the author's problem.