Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. Only the invited user may accept an invitation.
This method returns the following error codes:
PERMISSION_DENIED if the requesting user is not permitted to accept the requested invitation or for access errors.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["Accepts a course invitation, adding the invited user to the course and removing the invitation."],["Only the invited user can accept the invitation using this method."],["Requires the `https://www.googleapis.com/auth/classroom.rosters` OAuth scope for authorization."],["Returns errors if the user lacks permission, invitation doesn't exist, or course limits are reached."],["The request body should be empty, and a successful response will also be empty."]]],[]]