OneNote API not returning URL

Matt SA Account 0 Reputation points
2024-03-02T13:33:58.62+00:00

I am leveraging the API in order to pull sections/pages. While the webURL and clientURL links items are populated when querying at the notebook level, once I get down to a section, or a page, the response is simply as follows:


 "links": {

        "oneNoteClientUrl": {

            "href": "https://www.onenote.com/notebooks"

        },

        "oneNoteWebUrl": {

            "href": "https://www.onenote.com/notebooks"

        }

    },

Even thought it's a valid section/page result, I cannot get it to return a valid URL for either the client or the web.

Two example calls that return the above:


https://graph.microsoft.com/v1.0/sites/{site-id}/onenote/sections/1-0003e5c3-9487-435c-9f3d-ae2fb49897fe/pages

https://graph.microsoft.com/v1.0/sites/{site-id}/onenote/pages/1-d73a7c5528e444ed8e1a4d1dc3279557!20-0003e5c3-9487-435c-9f3d-ae2fb49897fe/

This seems to clash with all available documentation I could find. A bug, perhaps?

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
205 questions
OneNote Management
OneNote Management
OneNote: A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.Management: The act or process of organizing, handling, directing or controlling something.
179 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,992 questions
0 comments No comments
{count} votes

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.