web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint HTTP REST A...
Power Automate
Answered

SharePoint HTTP REST API call to add mega menu item on the hub site

(0) ShareShare
ReportReport
Posted on by 147
Hi,
Is there a REST API call that will allow me to add the item to the mega menu on the hub site?

I found the PnP script but in my case, I would like to trigger the action from Power Automate using a standard connector. 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @Michal,

     

    Yes, that should be possible via the TopNavigationbar of the navigation endpoint. That endpoint is also used for the hub navigation on a site collection which has been promoted as a hub.

     

    Try something like below.

     

    Uri

    _api/web/Navigation/TopNavigationbar

     

    Body

    {
    "__metadata": { "type": "SP.NavigationNode" },
    "Title": "Power Automate and REST API!",
    "Url":"https://www.expiscornovus.com"
    }

     

     hubnavigation.png

     

    Example screenshot of the end result. Keep in mind that the hub navigation sometimes is cached (so, it might take a bit of time to show up. In that case hit the edit button or ctrl+f5 a couple of times).

     

    hubnavigation_example.png

  • Michal Z. Profile Picture
    147 on at

    Thank you @Expiscornovus  for your help. This works

    I wonder how you find those REST API functions. I have spent hours looking for the nice documented source of those and couldn't find it. 

  • Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @Michal,

     

    The main doc about REST API is a good starting point:

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints

     

    All the other stuff I found either via other threads on this forum or other forums (like StackOverflow) or via reflection in the Developer toolbar of my browser.

     

    Just execute your steps in the interface and have a look in the Network tab. Normally that will give me some clues on what to use as well 😁

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard