Sign in

Create class notebook (Graph)

documented

Create a class notebook in OneNote Class Notebook via Graph.

POST https://graph.microsoft.com/v1.0/me/onenote/classNotebooksClass Notebooksno 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://www.onenote.com/api/v1.0/me/notes/classNotebooks?omkt={{OMKT}}&sendemail={{SENDEMAIL}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name":"{{$title}}","studentSections":["{{$studentSection1}}","{{$studentSection2}}"],"teachers":[{"id":"{{$teacher_id}}","principalType":"Person-or-Group"}],"students":[{"id":"{{$student1_id}}","principalType":"Person-or-Group"}],"hasTeacherOnlySectionGroup":{{$hasTeacherOnlySectionGroup}}}'"