Google Classroom add-ons are now generally available to developers! Please see the
add-ons documentation for more information.
Method: invitations.create
Stay organized with collections
Save and categorize content based on your preferences.
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_DENIED
if the requesting user is not permitted to create invitations 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.
- if the user already has this role or a role with greater permissions.
- for the following request errors:
ALREADY_EXISTS
if an invitation for the specified user and course already exists.
HTTP request
POST https://classroom.googleapis.com/v1/invitations
The URL uses gRPC Transcoding syntax.
Request body
The request body contains an instance of Invitation
.
Response body
If successful, the response body contains a newly created instance of Invitation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/classroom.rosters
For more information, see the Authorization guide.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-08-15 UTC.",
"state": ""
}