SharepointOnline site properties are not updated through REST API

Abdul Saif Babu 61 Reputation points
2021-03-22T13:34:37.997+00:00

Upon updating Sharepoint Online site properties(eg., title, description) through REST API, the updated values don't reflect until site information page is manually accessed.
Update site properties is working fine for SPOnpremise but not for SPOnline

Steps:

  1. Update site properties (title/description) through REST API
  2. Get the site properties via REST/UI. It can be now observed that properties are not updated
  3. Access site via browser and click on site settings - site information
  4. The new properties are displayed here.
  5. Now repeat step 2, and the updated values are reflected now.

While working with REST, it is not expected that user would access SPO via browser to get these properties reflect rightly.
Please refer screenshots
80261-1.png80226-2-after-rest-update.png80179-3-accessing-site-info.png80214-4-refreshed-again.png

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,628 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-04-01T02:19:56.637+00:00

    Hi @@Abdul Saif Babu ,

    The endpoint you used is to update the title and description of the group. After you updated the group, you need to wait some time to sync the title and description to site. Per my test, it costs about 2 hours.

    To make the change get reflected in the site immediately, you could call this API call to sync:

    /_api/GroupService/SyncGroupProperties  
    

    83443-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-03-23T05:59:43.18+00:00

    Hi @Abdul Saif Babu ,

    Per my test, updating site properties through REST API is working fine on my tenant. The updated values will normally reflect.

    Please check the below to troubleshoot this issue:

    • Could it be related to the browser cache ? After updating Sharepoint Online site properties, try to clear the cache (or in private mode). Check the results.
    • Did this issue exist in other sites? Or just this site. Please try to do some test on other sites. Check if the the same issue happens.

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.