Only one invitation for a user and course may existat a time. Delete and re-create an invitation to make changes.

gc_invitations_create(Invitation)

Arguments

Invitation

The gc_invitation object to pass to this method

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to createinvitations for this course or for access errors.

  • NOT_FOUND if the course or the user does not exist.

  • FAILED_PRECONDITION if the requested user's account is disabled or ifthe user already has this role or a role with greater permissions.

  • ALREADY_EXISTS if an invitation for the specified user and coursealready exists.

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.rosters

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.rosters") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also

Google Documentation

Other Invitation functions: gc_invitation()