Create class notebook (user)
documentedCreate a class notebook for a specific teacher user.
POST https://www.onenote.com/api/v1.0/users/{teacher_id}/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/users/{{$teacher_id}}/notes/classNotebooks?sendemail={{sendemail}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$title}}", "studentSections": ["{{$section1}}","{{$section2}}","{{$section3}}","{{$section4}}"], "teachers": [ {"id": "{{$teacher_email}}", "principalType": "Person"} ], "students": [ {"id": "{{$student1_email}}", "principalType": "Person"}, {"id": "{{$student2_email}}", "principalType": "Person"} ] }'