In the example OneNote Tab configuration, properties contentUrl and removeUrl, where the {sectionsUrl} is mentioned, the {groupId} should be placed, otherwise the tab will give an error when opened in Teams.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Yeah I second the notion to update the article as per advdberg's comment as it will save a lot of heads smashing through desks. I speak from experience.
I just smashed my head..
I think @nkramer or @jthake-msft can prevent a lot of sore heads ;-)
Awesome @advdberg many thx for your help... I wasted half a day on this :(
Tryning to interpret your comment about OneNote since I also get the error, but I can't figure it out. Anyone can provide a working URL pattern? I tried to add %2F{GroupId} before the %2F{sectionsUrl}.
don't use the sectionsUrl but the groupId instead
Worked like a charm. Thank you so much for your quick answer!
Thank you @advdberg for posting this! This works fine, but I noticed that my tab now doesn't take my name that I provide as displayName. It show correct name first, but then it changes to "note":

Don't know if this is related, or if it should be a new issue...
@joakimhogberg
No issue, remember that you're working with links when creating the tab. Read the "Displayname of OneNote tab changes on first access" that I brought up and you'll get it.
I could only getting it to work by first adding the tab in one request and then add the configuration in an update request.
Most helpful comment
Yeah I second the notion to update the article as per advdberg's comment as it will save a lot of heads smashing through desks. I speak from experience.