Good afternoon and thank you for your question. On the article just below Update OneNote page, namely Add images, videos, and files it states that:
Applies to Consumer notebooks on OneDrive | Enterprise notebooks on Microsoft 365
You can use img, object, and iframe elements to add images, videos, and files to a OneNote page when you're creating or updating the page.
- Use img to render an image on the page.
- Use iframe to embed a video on the page.
- Use object to add a file attachment to the page.
Under the same article, there was a sample titled: Add images of PDF file contents
https://learn.microsoft.com/en-us/graph/onenote-images-files#add-images-of-pdf-file-contents
To add, the update endpoint is :
To update the content of a OneNote page, you send a PATCH request to the page's content endpoint:
PATCH ../notes/pages/{id}/content
Send a JSON change object in the message body. If the request is successful, Microsoft Graph returns a 204 HTTP status code.
Reference: https://learn.microsoft.com/en-us/graph/onenote-update-page
If I answered your question, please upvote it and accept it as an answer. Thank you and have a great day!