Sign in

Update page content

documented

Update the content of a OneNote page using HTML diffs.

PATCH https://graph.microsoft.com/v1.0/me/onenote/pages/{page-id}/contentPagesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://graph.microsoft.com/v1.0/me/onenote/pages/{{$page_id}}/content" \
  -X PATCH \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '[{"target":"#{{$para_id}}","action":"insert","position":"before","content":"<p>{{$image_text}}</p>"},{"target":"#{{$list_id}}","action":"append","content":"<li>{{$list_item}}</li>"}]'