Enable or disable Google Calendar sync
POST/api/auth/google/calendar-sync
Enables or disables sharing of the teacher's platform calendar with their linked Google account. When enabled, the teacher will see their lessons directly in Google Calendar. Requires: (1) the user to be a teacher, (2) a Google account already linked via POST /api/auth/google/link, (3) the teacher's google_calendar_id to be already provisioned (created automatically in background at teacher registration).
Request
Responses
- 200
- 400
- 403
- 500
Calendar sync preference updated
Missing parameter, or Google account not linked
User is not a teacher
Teacher calendar not yet provisioned, or Google API error