Update page

Update the content of a OneNote page.


One of the following scopes is required to execute this API:

Notes.ReadWrite, or Notes.ReadWrite.All

HTTP request

PATCH /me/onenote/pages/{id}/content
PATCH /users/{id | userPrincipalName}/onenote/pages/{id}/content
PATCH /groups/{id}/onenote/pages/{id}/content
PATCH /sites/{id}/onenote/pages/{id}/content

Request headers

Name Type Description
Authorization string Bearer {token}. Required.
Content-Type string application/json

Request body

In the request body, supply an array of patchContentCommand objects that represent the changes to the page. For more information and examples, see Update OneNote pages.


If successful, this method returns a 204 No Content response code. No JSON data is returned for a PATCH request.



Here is an example of the request.

PATCH https://graph.microsoft.com/v1.0/me/onenote/pages/{id}/content
Content-type: application/json
Content-length: 312

    'content':'<img src="image-url-or-part-name" alt="image-alt-text" />'

Here is an example of the response.

HTTP/1.1 204 No Content