Resource: Invitation
An invitation to join a course.
JSON representation |
---|
{
"id": string,
"userId": string,
"courseId": string,
"role": enum ( |
Fields | |
---|---|
id |
Identifier assigned by Classroom. Read-only. |
userId |
Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following:
|
courseId |
Identifier of the course to invite the user to. |
role |
Role to invite the user to have. Must not be |
CourseRole
Possible roles a user may be invite to have.
Enums | |
---|---|
COURSE_ROLE_UNSPECIFIED |
No course role. |
STUDENT |
Student in the course. |
TEACHER |
Teacher of the course. |
OWNER |
Owner of the course. |
Methods |
|
---|---|
|
Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. |
|
Creates an invitation. |
|
Deletes an invitation. |
|
Returns an invitation. |
|
Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. |