getting 404 for GET request after renaming the sharepoint site

Rono, Jacob 21 Reputation points

I have renamed a sharepoint site URL from sharepoint admin center<tenant> . Now, trying to fetch new site URL via graph api .{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.
9,055 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,388 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,881 Reputation points

    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: or .

    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 26,791 Reputation points Microsoft Vendor

    Hi @Rono, Jacob
    Per my research, once you change the site to 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

    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.