Create class notebook
documentedCreate a class notebook for a teacher in OneNote Class Notebook (Office 365 only).
POST https://www.onenote.com/api/v1.0/me/notes/classNotebooksClass Notebooksno implementation yet0 runsNo 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" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$notebookName}}", "studentSections": ["{{$studentSection1}}","{{$studentSection2}}"], "teachers": [ { "id": "{{$teacher1_id}}","principalType": "{{$teacher1_principalType}}" } ], "students": [ { "id": "{{$student1_id}}","principalType": "{{$student1_principalType}}" } ], "hasTeacherOnlySectionGroup": {{$hasTeacherOnlySectionGroup}} }'