Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes.
This method returns the following error codes:
PERMISSION_DENIEDif the requesting user is not permitted to create invitations for this course or for access errors.
NOT_FOUNDif the course or the user does not exist.
FAILED_PRECONDITIONif the requested user's account is disabled or if the user already has this role or a role with greater permissions.
ALREADY_EXISTSif an invitation for the specified user and course already exists.
The URL uses gRPC Transcoding syntax.
The request body contains an instance of
If successful, the response body contains a newly created instance of
Requires the following OAuth scope:
For more information, see the OAuth 2.0 Overview.