2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-04 19:03:46 +00:00
restic/vendor/google.golang.org/api/classroom/v1/classroom-api.json

3573 lines
176 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"ownerDomain": "google.com",
"name": "classroom",
"batchPath": "batch",
"id": "classroom:v1",
"documentationLink": "https://developers.google.com/classroom/",
"revision": "20180114",
2017-08-05 18:17:15 +00:00
"title": "Google Classroom API",
2017-09-21 15:48:45 +00:00
"discoveryVersion": "v1",
"ownerName": "Google",
2017-08-05 18:17:15 +00:00
"resources": {
"invitations": {
"methods": {
"create": {
"httpMethod": "POST",
"parameterOrder": [],
"response": {
2017-10-22 08:07:36 +00:00
"$ref": "Invitation"
},
"parameters": {},
2017-09-21 15:48:45 +00:00
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters"
2017-09-21 15:48:45 +00:00
],
"flatPath": "v1/invitations",
2017-10-22 08:07:36 +00:00
"id": "classroom.invitations.create",
"path": "v1/invitations",
"request": {
"$ref": "Invitation"
},
"description": "Creates an invitation. Only one invitation for a user and course may exist\nat a time. Delete and re-create an invitation to make changes.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to create\ninvitations for this course or for access errors.\n* `NOT_FOUND` if the course or the user does not exist.\n* `FAILED_PRECONDITION` if the requested user's account is disabled or if\nthe user already has this role or a role with greater permissions.\n* `ALREADY_EXISTS` if an invitation for the specified user and course\nalready exists."
2017-09-13 12:09:48 +00:00
},
"accept": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"id"
],
"httpMethod": "POST",
2017-09-13 12:09:48 +00:00
"parameters": {
"id": {
2017-10-22 08:07:36 +00:00
"required": true,
"type": "string",
"location": "path",
"description": "Identifier of the invitation to accept."
2017-09-13 12:09:48 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters"
],
2017-09-13 12:09:48 +00:00
"flatPath": "v1/invitations/{id}:accept",
"path": "v1/invitations/{id}:accept",
2017-10-22 08:07:36 +00:00
"id": "classroom.invitations.accept",
"description": "Accepts an invitation, removing it and adding the invited user to the\nteachers or students (as appropriate) of the specified course. Only the\ninvited user may accept an invitation.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to accept the\nrequested invitation or for access errors.\n* `FAILED_PRECONDITION` for the following request errors:\n * CourseMemberLimitReached\n * CourseNotModifiable\n * CourseTeacherLimitReached\n * UserGroupsMembershipLimitReached\n* `NOT_FOUND` if no invitation exists with the requested ID."
2017-10-22 08:07:36 +00:00
},
"delete": {
"description": "Deletes an invitation.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to delete the\nrequested invitation or for access errors.\n* `NOT_FOUND` if no invitation exists with the requested ID.",
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"id"
],
"httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters"
],
2017-10-22 08:07:36 +00:00
"parameters": {
"id": {
"location": "path",
2017-10-22 08:07:36 +00:00
"description": "Identifier of the invitation to delete.",
"required": true,
"type": "string"
2017-10-22 08:07:36 +00:00
}
},
"flatPath": "v1/invitations/{id}",
"path": "v1/invitations/{id}",
"id": "classroom.invitations.delete"
},
2017-10-22 08:07:36 +00:00
"get": {
"description": "Returns an invitation.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to view the\nrequested invitation or for access errors.\n* `NOT_FOUND` if no invitation exists with the requested ID.",
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "Invitation"
2017-10-22 08:07:36 +00:00
},
"parameterOrder": [
"id"
],
"httpMethod": "GET",
2017-10-22 08:07:36 +00:00
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the invitation to return.",
2017-10-22 08:07:36 +00:00
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"flatPath": "v1/invitations/{id}",
"path": "v1/invitations/{id}",
"id": "classroom.invitations.get"
2017-09-13 12:09:48 +00:00
},
"list": {
"description": "Returns a list of invitations that the requesting user is permitted to\nview, restricted to those that match the list request.\n\n*Note:* At least one of `user_id` or `course_id` must be supplied. Both\nfields can be supplied.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` for access errors.",
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "ListInvitationsResponse"
2017-10-22 08:07:36 +00:00
},
"parameterOrder": [],
"httpMethod": "GET",
"parameters": {
"pageSize": {
"description": "Maximum number of items to return. Zero means no maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer",
"location": "query"
},
"courseId": {
"location": "query",
"description": "Restricts returned invitations to those for a course with the specified\nidentifier.",
"type": "string"
},
"userId": {
"description": "Restricts returned invitations to those for a specific user. The identifier\ncan be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"type": "string",
"location": "query"
},
"pageToken": {
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call, indicating\nthat the subsequent page of results should be returned.\n\nThe list request must be\notherwise identical to the one that resulted in this token.",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"flatPath": "v1/invitations",
"path": "v1/invitations",
"id": "classroom.invitations.list"
}
}
},
"courses": {
"methods": {
2017-10-22 08:07:36 +00:00
"list": {
"response": {
"$ref": "ListCoursesResponse"
},
"parameterOrder": [],
"httpMethod": "GET",
"parameters": {
"teacherId": {
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "query",
"description": "Restricts returned courses to those having a teacher with the specified\nidentifier. The identifier can be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user"
2017-10-22 08:07:36 +00:00
},
"courseStates": {
"type": "string",
2017-10-22 08:07:36 +00:00
"repeated": true,
"location": "query",
"enum": [
"COURSE_STATE_UNSPECIFIED",
"ACTIVE",
"ARCHIVED",
"PROVISIONED",
"DECLINED",
"SUSPENDED"
],
"description": "Restricts returned courses to those in one of the specified states\nThe default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED."
},
"studentId": {
"description": "Restricts returned courses to those having a student with the specified\nidentifier. The identifier can be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"type": "string",
"location": "query"
},
"pageToken": {
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request must be\notherwise identical to the one that resulted in this token.",
"type": "string"
},
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
2017-10-22 08:07:36 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.courses",
"https://www.googleapis.com/auth/classroom.courses.readonly"
],
2017-10-22 08:07:36 +00:00
"flatPath": "v1/courses",
"path": "v1/courses",
"id": "classroom.courses.list",
"description": "Returns a list of courses that the requesting user is permitted to view,\nrestricted to those that match the request. Returned courses are ordered by\ncreation time, with the most recently created coming first.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` for access errors.\n* `INVALID_ARGUMENT` if the query argument is malformed.\n* `NOT_FOUND` if any users specified in the query arguments do not exist."
2017-10-22 08:07:36 +00:00
},
"create": {
"response": {
"$ref": "Course"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
2017-10-22 08:07:36 +00:00
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
],
"flatPath": "v1/courses",
"path": "v1/courses",
"id": "classroom.courses.create",
"request": {
2017-10-22 08:07:36 +00:00
"$ref": "Course"
},
"description": "Creates a course.\n\nThe user specified in `ownerId` is the owner of the created course\nand added as a teacher.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to create\ncourses or for access errors.\n* `NOT_FOUND` if the primary teacher is not a valid user.\n* `FAILED_PRECONDITION` if the course owner's account is disabled or for\nthe following request errors:\n * UserGroupsMembershipLimitReached\n* `ALREADY_EXISTS` if an alias was specified in the `id` and\nalready exists."
},
"get": {
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the course to return.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.courses",
"https://www.googleapis.com/auth/classroom.courses.readonly"
],
"flatPath": "v1/courses/{id}",
"path": "v1/courses/{id}",
"id": "classroom.courses.get",
"description": "Returns a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or for access errors.\n* `NOT_FOUND` if no course exists with the requested ID.",
"response": {
"$ref": "Course"
},
"parameterOrder": [
"id"
],
"httpMethod": "GET"
},
"patch": {
"flatPath": "v1/courses/{id}",
"path": "v1/courses/{id}",
"id": "classroom.courses.patch",
"request": {
"$ref": "Course"
},
"description": "Updates one or more fields in a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to modify the\nrequested course or for access errors.\n* `NOT_FOUND` if no course exists with the requested ID.\n* `INVALID_ARGUMENT` if invalid fields are specified in the update mask or\nif no update mask is supplied.\n* `FAILED_PRECONDITION` for the following request errors:\n * CourseNotModifiable",
"response": {
"$ref": "Course"
},
"parameterOrder": [
"id"
],
"httpMethod": "PATCH",
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the course to update.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"updateMask": {
"location": "query",
"description": "Mask that identifies which fields on the course to update.\nThis field is required to do an update. The update will fail if invalid\nfields are specified. The following fields are valid:\n\n* `name`\n* `section`\n* `descriptionHeading`\n* `description`\n* `room`\n* `courseState`\n* `ownerId`\n\nNote: patches to ownerId are treated as being effective immediately, but in\npractice it may take some time for the ownership transfer of all affected\nresources to complete.\n\nWhen set in a query parameter, this field should be specified as\n\n`updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...`",
"format": "google-fieldmask",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
]
},
"update": {
"path": "v1/courses/{id}",
"id": "classroom.courses.update",
"description": "Updates a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to modify the\nrequested course or for access errors.\n* `NOT_FOUND` if no course exists with the requested ID.\n* `FAILED_PRECONDITION` for the following request errors:\n * CourseNotModifiable",
"request": {
"$ref": "Course"
},
"response": {
"$ref": "Course"
},
"parameterOrder": [
"id"
],
"httpMethod": "PUT",
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
],
"parameters": {
"id": {
"required": true,
"type": "string",
"location": "path",
"description": "Identifier of the course to update.\nThis identifier can be either the Classroom-assigned identifier or an\nalias."
}
},
"flatPath": "v1/courses/{id}"
},
"delete": {
"flatPath": "v1/courses/{id}",
"path": "v1/courses/{id}",
"id": "classroom.courses.delete",
"description": "Deletes a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to delete the\nrequested course or for access errors.\n* `NOT_FOUND` if no course exists with the requested ID.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"id"
],
"httpMethod": "DELETE",
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the course to delete.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
]
}
},
"resources": {
"announcements": {
"methods": {
"list": {
"description": "Returns a list of announcements that the requester is permitted to view.\n\nCourse students may only view `PUBLISHED` announcements. Course teachers\nand domain administrators may view all announcements.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
"response": {
"$ref": "ListAnnouncementsResponse"
},
2017-10-22 08:07:36 +00:00
"parameterOrder": [
"courseId"
2017-09-21 15:48:45 +00:00
],
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameters": {
"orderBy": {
"type": "string",
"location": "query",
"description": "Optional sort ordering for results. A comma-separated list of fields with\nan optional sort direction keyword. Supported field is `updateTime`.\nSupported direction keywords are `asc` and `desc`.\nIf not specified, `updateTime desc` is the default behavior.\nExamples: `updateTime asc`, `updateTime`"
},
"pageToken": {
"type": "string",
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token."
},
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
},
2017-10-22 08:07:36 +00:00
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
2017-08-05 18:17:15 +00:00
"required": true,
"type": "string",
"location": "path"
},
"announcementStates": {
"type": "string",
"repeated": true,
"location": "query",
"enum": [
"ANNOUNCEMENT_STATE_UNSPECIFIED",
"PUBLISHED",
"DRAFT",
"DELETED"
],
"description": "Restriction on the `state` of announcements returned.\nIf this argument is left unspecified, the default value is `PUBLISHED`."
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements",
"https://www.googleapis.com/auth/classroom.announcements.readonly"
],
"flatPath": "v1/courses/{courseId}/announcements",
"path": "v1/courses/{courseId}/announcements",
"id": "classroom.courses.announcements.list"
},
"create": {
"request": {
"$ref": "Announcement"
},
"description": "Creates an announcement.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course, create announcements in the requested course, share a\nDrive attachment, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.\n* `FAILED_PRECONDITION` for the following request error:\n * AttachmentNotVisible",
"httpMethod": "POST",
"parameterOrder": [
"courseId"
],
"response": {
"$ref": "Announcement"
},
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements"
],
"flatPath": "v1/courses/{courseId}/announcements",
"id": "classroom.courses.announcements.create",
"path": "v1/courses/{courseId}/announcements"
},
"modifyAssignees": {
"path": "v1/courses/{courseId}/announcements/{id}:modifyAssignees",
"id": "classroom.courses.announcements.modifyAssignees",
"request": {
"$ref": "ModifyAnnouncementAssigneesRequest"
},
"description": "Modifies assignee mode and options of an announcement.\n\nOnly a teacher of the course that contains the announcement may\ncall this method.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or course work does not exist.",
"response": {
"$ref": "Announcement"
},
"parameterOrder": [
"courseId",
"id"
],
"httpMethod": "POST",
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"description": "Identifier of the announcement.",
2017-10-22 08:07:36 +00:00
"required": true,
"type": "string",
"location": "path"
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements"
],
"flatPath": "v1/courses/{courseId}/announcements/{id}:modifyAssignees"
2017-08-05 18:17:15 +00:00
},
"get": {
"response": {
"$ref": "Announcement"
},
"parameterOrder": [
"courseId",
"id"
],
2017-10-22 08:07:36 +00:00
"httpMethod": "GET",
"parameters": {
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
},
"id": {
"location": "path",
"description": "Identifier of the announcement.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements",
"https://www.googleapis.com/auth/classroom.announcements.readonly"
],
"flatPath": "v1/courses/{courseId}/announcements/{id}",
"path": "v1/courses/{courseId}/announcements/{id}",
"id": "classroom.courses.announcements.get",
"description": "Returns an announcement.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or announcement, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or announcement does not exist."
},
"patch": {
"request": {
"$ref": "Announcement"
},
"description": "Updates one or more fields of an announcement.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting developer project did not create\nthe corresponding announcement or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `FAILED_PRECONDITION` if the requested announcement has already been\ndeleted.\n* `NOT_FOUND` if the requested course or announcement does not exist",
"response": {
"$ref": "Announcement"
},
"parameterOrder": [
2017-10-22 08:07:36 +00:00
"courseId",
"id"
],
"httpMethod": "PATCH",
2017-08-05 18:17:15 +00:00
"parameters": {
"id": {
"description": "Identifier of the announcement.",
"required": true,
"type": "string",
"location": "path"
},
"updateMask": {
"location": "query",
"description": "Mask that identifies which fields on the announcement to update.\nThis field is required to do an update. The update fails if invalid\nfields are specified. If a field supports empty values, it can be cleared\nby specifying it in the update mask and not in the Announcement object. If\na field that does not support empty values is included in the update mask\nand not set in the Announcement object, an `INVALID_ARGUMENT` error will be\nreturned.\n\nThe following fields may be specified by teachers:\n\n* `text`\n* `state`\n* `scheduled_time`",
"format": "google-fieldmask",
"type": "string"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements"
],
"flatPath": "v1/courses/{courseId}/announcements/{id}",
"path": "v1/courses/{courseId}/announcements/{id}",
"id": "classroom.courses.announcements.patch"
},
"delete": {
"httpMethod": "DELETE",
"parameterOrder": [
"courseId",
"id"
],
"response": {
"$ref": "Empty"
},
"parameters": {
2017-10-22 08:07:36 +00:00
"courseId": {
2017-09-13 12:09:48 +00:00
"location": "path",
2017-10-22 08:07:36 +00:00
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"description": "Identifier of the announcement to delete.\nThis identifier is a Classroom-assigned identifier.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.announcements"
],
"flatPath": "v1/courses/{courseId}/announcements/{id}",
"id": "classroom.courses.announcements.delete",
"path": "v1/courses/{courseId}/announcements/{id}",
"description": "Deletes an announcement.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding announcement item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting developer project did not create\nthe corresponding announcement, if the requesting user is not permitted\nto delete the requested course or for access errors.\n* `FAILED_PRECONDITION` if the requested announcement has already been\ndeleted.\n* `NOT_FOUND` if no course exists with the requested ID."
}
}
},
"students": {
"methods": {
"get": {
"response": {
"$ref": "Student"
},
"parameterOrder": [
"courseId",
"userId"
],
"httpMethod": "GET",
"parameters": {
"userId": {
"location": "path",
"description": "Identifier of the student to return. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"required": true,
"type": "string"
},
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
2017-08-05 18:17:15 +00:00
}
},
2017-10-22 08:07:36 +00:00
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
2017-10-22 08:07:36 +00:00
],
"flatPath": "v1/courses/{courseId}/students/{userId}",
"path": "v1/courses/{courseId}/students/{userId}",
"id": "classroom.courses.students.get",
"description": "Returns a student of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to view\nstudents of this course or for access errors.\n* `NOT_FOUND` if no student of this course has the requested ID or if the\ncourse does not exist."
2017-08-05 18:17:15 +00:00
},
"list": {
"id": "classroom.courses.students.list",
"path": "v1/courses/{courseId}/students",
"description": "Returns a list of students of this course that the requester\nis permitted to view.\n\nThis method returns the following error codes:\n\n* `NOT_FOUND` if the course does not exist.\n* `PERMISSION_DENIED` for access errors.",
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameterOrder": [
"courseId"
2017-09-13 12:09:48 +00:00
],
"response": {
"$ref": "ListStudentsResponse"
},
2017-08-05 18:17:15 +00:00
"parameters": {
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero means no maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
},
2017-10-22 08:07:36 +00:00
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "path"
},
"pageToken": {
"description": "nextPageToken\nvalue returned from a previous\nlist call, indicating that\nthe subsequent page of results should be returned.\n\nThe list request must be\notherwise identical to the one that resulted in this token.",
"type": "string",
"location": "query"
2017-10-22 08:07:36 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"flatPath": "v1/courses/{courseId}/students"
},
"create": {
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "Student"
2017-10-22 08:07:36 +00:00
},
"parameterOrder": [
"courseId"
2017-10-22 08:07:36 +00:00
],
"httpMethod": "POST",
2017-10-22 08:07:36 +00:00
"parameters": {
"enrollmentCode": {
"location": "query",
"description": "Enrollment code of the course to create the student in.\nThis code is required if userId\ncorresponds to the requesting user; it may be omitted if the requesting\nuser has administrative permissions to create students for any user.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
2017-10-22 08:07:36 +00:00
"courseId": {
"description": "Identifier of the course to create the student in.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
2017-10-22 08:07:36 +00:00
"required": true,
"type": "string",
"location": "path"
2017-10-22 08:07:36 +00:00
}
},
"scopes": [
2017-10-22 08:07:36 +00:00
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters"
2017-09-13 12:09:48 +00:00
],
"flatPath": "v1/courses/{courseId}/students",
"path": "v1/courses/{courseId}/students",
"id": "classroom.courses.students.create",
"request": {
"$ref": "Student"
},
"description": "Adds a user as a student of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to create\nstudents in this course or for access errors.\n* `NOT_FOUND` if the requested course ID does not exist.\n* `FAILED_PRECONDITION` if the requested user's account is disabled,\nfor the following request errors:\n * CourseMemberLimitReached\n * CourseNotModifiable\n * UserGroupsMembershipLimitReached\n* `ALREADY_EXISTS` if the user is already a student or teacher in the\ncourse."
},
"delete": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"userId"
],
"httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters"
],
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
2017-10-22 08:07:36 +00:00
},
"userId": {
"description": "Identifier of the student to delete. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"required": true,
"type": "string",
"location": "path"
}
},
"flatPath": "v1/courses/{courseId}/students/{userId}",
"path": "v1/courses/{courseId}/students/{userId}",
"id": "classroom.courses.students.delete",
"description": "Deletes a student of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to delete\nstudents of this course or for access errors.\n* `NOT_FOUND` if no student of this course has the requested ID or if the\ncourse does not exist."
}
}
},
"topics": {
"methods": {
"get": {
"id": "classroom.courses.topics.get",
"path": "v1/courses/{courseId}/topics/{id}",
"description": "Returns a topic.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or topic, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or topic does not exist.",
"httpMethod": "GET",
"parameterOrder": [
"courseId",
"id"
],
"response": {
"$ref": "Topic"
},
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.",
"required": true,
"type": "string"
},
"id": {
"description": "Identifier of the topic.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
],
"flatPath": "v1/courses/{courseId}/topics/{id}"
},
"list": {
"description": "Returns the list of topics that the requester is permitted to view.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
"response": {
"$ref": "ListTopicResponse"
},
"parameterOrder": [
"courseId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
],
"parameters": {
"pageToken": {
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
},
"courseId": {
"required": true,
"type": "string",
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias."
}
},
"flatPath": "v1/courses/{courseId}/topics",
"path": "v1/courses/{courseId}/topics",
"id": "classroom.courses.topics.list"
}
}
},
"aliases": {
"methods": {
"delete": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"alias"
],
"httpMethod": "DELETE",
"parameters": {
"alias": {
"description": "Alias to delete.\nThis may not be the Classroom-assigned identifier.",
"required": true,
"type": "string",
"location": "path"
},
"courseId": {
"description": "Identifier of the course whose alias should be deleted.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
],
"flatPath": "v1/courses/{courseId}/aliases/{alias}",
"path": "v1/courses/{courseId}/aliases/{alias}",
"id": "classroom.courses.aliases.delete",
"description": "Deletes an alias of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to remove the\nalias or for access errors.\n* `NOT_FOUND` if the alias does not exist.\n* `FAILED_PRECONDITION` if the alias requested does not make sense for the\n requesting user or course (for example, if a user not in a domain\n attempts to delete a domain-scoped alias)."
},
"list": {
"description": "Returns a list of aliases for a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\ncourse or for access errors.\n* `NOT_FOUND` if the course does not exist.",
"response": {
"$ref": "ListCourseAliasesResponse"
},
"parameterOrder": [
"courseId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.courses",
"https://www.googleapis.com/auth/classroom.courses.readonly"
],
"parameters": {
"pageToken": {
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string"
},
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
},
"courseId": {
"location": "path",
"description": "The identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/courses/{courseId}/aliases",
"path": "v1/courses/{courseId}/aliases",
"id": "classroom.courses.aliases.list"
},
"create": {
"flatPath": "v1/courses/{courseId}/aliases",
"path": "v1/courses/{courseId}/aliases",
"id": "classroom.courses.aliases.create",
"description": "Creates an alias for a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to create the\nalias or for access errors.\n* `NOT_FOUND` if the course does not exist.\n* `ALREADY_EXISTS` if the alias already exists.\n* `FAILED_PRECONDITION` if the alias requested does not make sense for the\n requesting user or course (for example, if a user not in a domain\n attempts to access a domain-scoped alias).",
"request": {
"$ref": "CourseAlias"
},
"response": {
"$ref": "CourseAlias"
},
"parameterOrder": [
"courseId"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/classroom.courses"
],
"parameters": {
"courseId": {
"required": true,
"type": "string",
"location": "path",
"description": "Identifier of the course to alias.\nThis identifier can be either the Classroom-assigned identifier or an\nalias."
2017-08-05 18:17:15 +00:00
}
}
}
}
},
"courseWork": {
"methods": {
"modifyAssignees": {
"response": {
"$ref": "CourseWork"
},
"parameterOrder": [
"courseId",
"id"
],
"httpMethod": "POST",
"parameters": {
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
},
"id": {
"description": "Identifier of the coursework.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"flatPath": "v1/courses/{courseId}/courseWork/{id}:modifyAssignees",
"path": "v1/courses/{courseId}/courseWork/{id}:modifyAssignees",
"id": "classroom.courses.courseWork.modifyAssignees",
"request": {
"$ref": "ModifyCourseWorkAssigneesRequest"
},
"description": "Modifies assignee mode and options of a coursework.\n\nOnly a teacher of the course that contains the coursework may\ncall this method.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or course work does not exist."
},
"patch": {
"response": {
"$ref": "CourseWork"
},
"parameterOrder": [
"courseId",
"id"
],
"httpMethod": "PATCH",
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"location": "path",
"description": "Identifier of the course work.",
"required": true,
"type": "string"
},
"updateMask": {
"location": "query",
"description": "Mask that identifies which fields on the course work to update.\nThis field is required to do an update. The update fails if invalid\nfields are specified. If a field supports empty values, it can be cleared\nby specifying it in the update mask and not in the CourseWork object. If a\nfield that does not support empty values is included in the update mask and\nnot set in the CourseWork object, an `INVALID_ARGUMENT` error will be\nreturned.\n\nThe following fields may be specified by teachers:\n\n* `title`\n* `description`\n* `state`\n* `due_date`\n* `due_time`\n* `max_points`\n* `scheduled_time`\n* `submission_modification_mode`",
"format": "google-fieldmask",
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"flatPath": "v1/courses/{courseId}/courseWork/{id}",
"path": "v1/courses/{courseId}/courseWork/{id}",
"id": "classroom.courses.courseWork.patch",
"request": {
"$ref": "CourseWork"
},
"description": "Updates one or more fields of a course work.\n\nSee google.classroom.v1.CourseWork for details\nof which fields may be updated and who may change them.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting developer project did not create\nthe corresponding course work, if the user is not permitted to make the\nrequested modification to the student submission, or for\naccess errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `FAILED_PRECONDITION` if the requested course work has already been\ndeleted.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist."
},
"get": {
"description": "Returns course work.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course or course work does not exist.",
"httpMethod": "GET",
"parameterOrder": [
"courseId",
"id"
],
"response": {
"$ref": "CourseWork"
},
"parameters": {
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
},
"id": {
"description": "Identifier of the course work.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
],
"flatPath": "v1/courses/{courseId}/courseWork/{id}",
"id": "classroom.courses.courseWork.get",
"path": "v1/courses/{courseId}/courseWork/{id}"
},
"delete": {
"path": "v1/courses/{courseId}/courseWork/{id}",
"id": "classroom.courses.courseWork.delete",
"description": "Deletes a course work.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting developer project did not create\nthe corresponding course work, if the requesting user is not permitted\nto delete the requested course or for access errors.\n* `FAILED_PRECONDITION` if the requested course work has already been\ndeleted.\n* `NOT_FOUND` if no course exists with the requested ID.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"id"
],
"httpMethod": "DELETE",
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"location": "path",
"description": "Identifier of the course work to delete.\nThis identifier is a Classroom-assigned identifier.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"flatPath": "v1/courses/{courseId}/courseWork/{id}"
},
"list": {
"response": {
"$ref": "ListCourseWorkResponse"
},
"parameterOrder": [
"courseId"
],
"httpMethod": "GET",
"parameters": {
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
},
"orderBy": {
"location": "query",
"description": "Optional sort ordering for results. A comma-separated list of fields with\nan optional sort direction keyword. Supported fields are `updateTime`\nand `dueDate`. Supported direction keywords are `asc` and `desc`.\nIf not specified, `updateTime desc` is the default behavior.\nExamples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`",
"type": "string"
},
"pageToken": {
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string",
"location": "query"
},
"pageSize": {
"type": "integer",
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32"
},
"courseWorkStates": {
"description": "Restriction on the work status to return. Only courseWork that matches\nis returned. If unspecified, items with a work status of `PUBLISHED`\nis returned.",
"type": "string",
"repeated": true,
"location": "query",
"enum": [
"COURSE_WORK_STATE_UNSPECIFIED",
"PUBLISHED",
"DRAFT",
"DELETED"
]
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly"
],
"flatPath": "v1/courses/{courseId}/courseWork",
"path": "v1/courses/{courseId}/courseWork",
"id": "classroom.courses.courseWork.list",
"description": "Returns a list of course work that the requester is permitted to view.\n\nCourse students may only view `PUBLISHED` course work. Course teachers\nand domain administrators may view all course work.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthe requested course or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist."
},
"create": {
"response": {
"$ref": "CourseWork"
},
"parameterOrder": [
"courseId"
],
"httpMethod": "POST",
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"flatPath": "v1/courses/{courseId}/courseWork",
"path": "v1/courses/{courseId}/courseWork",
"id": "classroom.courses.courseWork.create",
"request": {
"$ref": "CourseWork"
},
"description": "Creates course work.\n\nThe resulting course work (and corresponding student submissions) are\nassociated with the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\nmake the request. Classroom API requests to modify course work and student\nsubmissions must be made with an OAuth client ID from the associated\nDeveloper Console project.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course, create course work in the requested course, share a\nDrive attachment, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.\n* `FAILED_PRECONDITION` for the following request error:\n * AttachmentNotVisible"
}
},
"resources": {
"studentSubmissions": {
"methods": {
"get": {
"response": {
"$ref": "StudentSubmission"
},
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"
],
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the student submission.",
"required": true,
"type": "string"
},
"courseWorkId": {
"description": "Identifier of the course work.",
"required": true,
"type": "string",
"location": "path"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
"id": "classroom.courses.courseWork.studentSubmissions.get",
"description": "Returns a student submission.\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course, course work, or student submission or for\naccess errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist."
},
"patch": {
"response": {
"$ref": "StudentSubmission"
},
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"httpMethod": "PATCH",
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"location": "path",
"description": "Identifier of the student submission.",
"required": true,
"type": "string"
},
"updateMask": {
"location": "query",
"description": "Mask that identifies which fields on the student submission to update.\nThis field is required to do an update. The update fails if invalid\nfields are specified.\n\nThe following fields may be specified by teachers:\n\n* `draft_grade`\n* `assigned_grade`",
"format": "google-fieldmask",
"type": "string"
},
"courseWorkId": {
"description": "Identifier of the course work.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
"id": "classroom.courses.courseWork.studentSubmissions.patch",
"request": {
"$ref": "StudentSubmission"
},
"description": "Updates one or more fields of a student submission.\n\nSee google.classroom.v1.StudentSubmission for details\nof which fields may be updated and who may change them.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting developer project did not create\nthe corresponding course work, if the user is not permitted to make the\nrequested modification to the student submission, or for\naccess errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist."
},
"return": {
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"parameters": {
"id": {
"location": "path",
"description": "Identifier of the student submission.",
"required": true,
"type": "string"
},
"courseWorkId": {
"description": "Identifier of the course work.",
"required": true,
"type": "string",
"location": "path"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return",
"id": "classroom.courses.courseWork.studentSubmissions.return",
"description": "Returns a student submission.\n\nReturning a student submission transfers ownership of attached Drive\nfiles to the student and may also update the submission state.\nUnlike the Classroom application, returning a student submission does not\nset assignedGrade to the draftGrade value.\n\nOnly a teacher of the course that contains the requested student submission\nmay call this method.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, return the requested student submission,\nor for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist.",
"request": {
"$ref": "ReturnStudentSubmissionRequest"
},
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"httpMethod": "POST"
},
"reclaim": {
"httpMethod": "POST",
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"response": {
"$ref": "Empty"
},
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"location": "path",
"description": "Identifier of the student submission.",
"required": true,
"type": "string"
},
"courseWorkId": {
"location": "path",
"description": "Identifier of the course work.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me"
],
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim",
"id": "classroom.courses.courseWork.studentSubmissions.reclaim",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim",
"request": {
"$ref": "ReclaimStudentSubmissionRequest"
},
"description": "Reclaims a student submission on behalf of the student that owns it.\n\nReclaiming a student submission transfers ownership of attached Drive\nfiles to the student and update the submission state.\n\nOnly the student that owns the requested student submission may call this\nmethod, and only for a student submission that has been turned in.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, unsubmit the requested student submission,\nor for access errors.\n* `FAILED_PRECONDITION` if the student submission has not been turned in.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist."
},
"turnIn": {
"description": "Turns in a student submission.\n\nTurning in a student submission transfers ownership of attached Drive\nfiles to the teacher and may also update the submission state.\n\nThis may only be called by the student that owns the specified student\nsubmission.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, turn in the requested student submission,\nor for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist.",
"request": {
"$ref": "TurnInStudentSubmissionRequest"
},
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me"
],
"parameters": {
"courseWorkId": {
"location": "path",
"description": "Identifier of the course work.",
"required": true,
"type": "string"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"id": {
"location": "path",
"description": "Identifier of the student submission.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn",
"id": "classroom.courses.courseWork.studentSubmissions.turnIn"
},
"modifyAttachments": {
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.students"
],
"parameters": {
"courseWorkId": {
"location": "path",
"description": "Identifier of the course work.",
"required": true,
"type": "string"
},
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
},
"id": {
"description": "Identifier of the student submission.",
"required": true,
"type": "string",
"location": "path"
}
},
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments",
"id": "classroom.courses.courseWork.studentSubmissions.modifyAttachments",
"description": "Modifies attachments of student submission.\n\nAttachments may only be added to student submissions belonging to course\nwork objects with a `workType` of `ASSIGNMENT`.\n\nThis request must be made by the Developer Console project of the\n[OAuth client ID](https://support.google.com/cloud/answer/6158849) used to\ncreate the corresponding course work item.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, if the user is not permitted to modify\nattachments on the requested student submission, or for\naccess errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course, course work, or student submission\ndoes not exist.",
"request": {
"$ref": "ModifyAttachmentsRequest"
},
"response": {
"$ref": "StudentSubmission"
},
"parameterOrder": [
"courseId",
"courseWorkId",
"id"
],
"httpMethod": "POST"
},
"list": {
"description": "Returns a list of student submissions that the requester is permitted to\nview, factoring in the OAuth scopes of the request.\n`-` may be specified as the `course_work_id` to include student\nsubmissions for multiple course work items.\n\nCourse students may only view their own work. Course teachers\nand domain administrators may view all student submissions.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access the\nrequested course or course work, or for access errors.\n* `INVALID_ARGUMENT` if the request is malformed.\n* `NOT_FOUND` if the requested course does not exist.",
"httpMethod": "GET",
"parameterOrder": [
"courseId",
"courseWorkId"
],
"response": {
"$ref": "ListStudentSubmissionsResponse"
},
"parameters": {
"pageToken": {
"location": "query",
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string"
},
"pageSize": {
"type": "integer",
"location": "query",
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32"
},
"states": {
"description": "Requested submission states. If specified, returned student submissions\nmatch one of the specified submission states.",
"type": "string",
"repeated": true,
"location": "query",
"enum": [
"SUBMISSION_STATE_UNSPECIFIED",
"NEW",
"CREATED",
"TURNED_IN",
"RETURNED",
"RECLAIMED_BY_STUDENT"
]
},
"userId": {
"type": "string",
"location": "query",
"description": "Optional argument to restrict returned student work to those owned by the\nstudent with the specified identifier. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user"
},
"courseWorkId": {
"description": "Identifier of the student work to request.\nThis may be set to the string literal `\"-\"` to request student work for\nall course work in the specified course.",
"required": true,
"type": "string",
"location": "path"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
},
"late": {
"description": "Requested lateness value. If specified, returned student submissions are\nrestricted by the requested value.\nIf unspecified, submissions are returned regardless of `late` value.",
"type": "string",
"location": "query",
"enum": [
"LATE_VALUES_UNSPECIFIED",
"LATE_ONLY",
"NOT_LATE_ONLY"
]
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"
],
"flatPath": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions",
"id": "classroom.courses.courseWork.studentSubmissions.list",
"path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions"
}
}
2017-08-05 18:17:15 +00:00
}
}
},
"teachers": {
2017-08-05 18:17:15 +00:00
"methods": {
"delete": {
"flatPath": "v1/courses/{courseId}/teachers/{userId}",
"path": "v1/courses/{courseId}/teachers/{userId}",
"id": "classroom.courses.teachers.delete",
"description": "Deletes a teacher of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to delete\nteachers of this course or for access errors.\n* `NOT_FOUND` if no teacher of this course has the requested ID or if the\ncourse does not exist.\n* `FAILED_PRECONDITION` if the requested ID belongs to the primary teacher\nof this course.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"courseId",
"userId"
],
"httpMethod": "DELETE",
"parameters": {
"userId": {
"location": "path",
"description": "Identifier of the teacher to delete. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"required": true,
"type": "string"
},
2017-09-13 12:09:48 +00:00
"courseId": {
2017-10-22 08:07:36 +00:00
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
2017-09-21 15:48:45 +00:00
"required": true,
2017-10-22 08:07:36 +00:00
"type": "string",
"location": "path"
2017-09-13 12:09:48 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.rosters"
]
2017-08-05 18:17:15 +00:00
},
2017-10-22 08:07:36 +00:00
"get": {
2017-08-05 18:17:15 +00:00
"response": {
"$ref": "Teacher"
2017-08-05 18:17:15 +00:00
},
"parameterOrder": [
2017-10-22 08:07:36 +00:00
"courseId",
"userId"
2017-08-05 18:17:15 +00:00
],
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameters": {
"userId": {
"required": true,
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "path",
"description": "Identifier of the teacher to return. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user"
},
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
2017-10-22 08:07:36 +00:00
"required": true,
"type": "string"
2017-08-05 18:17:15 +00:00
}
2017-10-22 08:07:36 +00:00
},
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
2017-10-22 08:07:36 +00:00
],
"flatPath": "v1/courses/{courseId}/teachers/{userId}",
"path": "v1/courses/{courseId}/teachers/{userId}",
"id": "classroom.courses.teachers.get",
"description": "Returns a teacher of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to view\nteachers of this course or for access errors.\n* `NOT_FOUND` if no teacher of this course has the requested ID or if the\ncourse does not exist."
2017-08-05 18:17:15 +00:00
},
2017-10-22 08:07:36 +00:00
"list": {
"flatPath": "v1/courses/{courseId}/teachers",
"path": "v1/courses/{courseId}/teachers",
"id": "classroom.courses.teachers.list",
"description": "Returns a list of teachers of this course that the requester\nis permitted to view.\n\nThis method returns the following error codes:\n\n* `NOT_FOUND` if the course does not exist.\n* `PERMISSION_DENIED` for access errors.",
2017-09-21 15:48:45 +00:00
"response": {
"$ref": "ListTeachersResponse"
2017-09-21 15:48:45 +00:00
},
"parameterOrder": [
"courseId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"parameters": {
2017-10-22 08:07:36 +00:00
"pageToken": {
"description": "nextPageToken\nvalue returned from a previous\nlist call, indicating that\nthe subsequent page of results should be returned.\n\nThe list request must be\notherwise identical to the one that resulted in this token.",
"type": "string",
"location": "query"
2017-10-22 08:07:36 +00:00
},
"pageSize": {
"location": "query",
"description": "Maximum number of items to return. Zero means no maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
},
"courseId": {
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string",
"location": "path"
2017-08-05 18:17:15 +00:00
}
}
2017-10-22 08:07:36 +00:00
},
"create": {
"response": {
"$ref": "Teacher"
},
"parameterOrder": [
2017-10-22 08:07:36 +00:00
"courseId"
],
2017-10-22 08:07:36 +00:00
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters"
],
"parameters": {
"courseId": {
"location": "path",
"description": "Identifier of the course.\nThis identifier can be either the Classroom-assigned identifier or an\nalias.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/courses/{courseId}/teachers",
"path": "v1/courses/{courseId}/teachers",
"id": "classroom.courses.teachers.create",
"description": "Creates a teacher of a course.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to create\nteachers in this course or for access errors.\n* `NOT_FOUND` if the requested course ID does not exist.\n* `FAILED_PRECONDITION` if the requested user's account is disabled,\nfor the following request errors:\n * CourseMemberLimitReached\n * CourseNotModifiable\n * CourseTeacherLimitReached\n * UserGroupsMembershipLimitReached\n* `ALREADY_EXISTS` if the user is already a teacher or student in the\ncourse.",
"request": {
"$ref": "Teacher"
}
}
}
2017-10-22 08:07:36 +00:00
}
}
},
"userProfiles": {
"methods": {
"get": {
"description": "Returns a user profile.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to access\nthis user profile, if no profile exists with the requested ID, or for\naccess errors.",
"response": {
"$ref": "UserProfile"
},
"parameterOrder": [
"userId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.profile.emails",
"https://www.googleapis.com/auth/classroom.profile.photos",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"parameters": {
"userId": {
"required": true,
"type": "string",
"location": "path",
"description": "Identifier of the profile to return. The identifier can be one of the\nfollowing:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user"
}
},
"flatPath": "v1/userProfiles/{userId}",
"path": "v1/userProfiles/{userId}",
"id": "classroom.userProfiles.get"
}
},
2017-10-22 08:07:36 +00:00
"resources": {
"guardianInvitations": {
"methods": {
"create": {
"request": {
"$ref": "GuardianInvitation"
},
"description": "Creates a guardian invitation, and sends an email to the guardian asking\nthem to confirm that they are the student's guardian.\n\nOnce the guardian accepts the invitation, their `state` will change to\n`COMPLETED` and they will start receiving guardian notifications. A\n`Guardian` resource will also be created to represent the active guardian.\n\nThe request object must have the `student_id` and\n`invited_email_address` fields set. Failing to set these fields, or\nsetting any other fields in the request, will result in an error.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the current user does not have permission to\n manage guardians, if the guardian in question has already rejected\n too many requests for that student, if guardians are not enabled for the\n domain in question, or for other access errors.\n* `RESOURCE_EXHAUSTED` if the student or guardian has exceeded the guardian\n link limit.\n* `INVALID_ARGUMENT` if the guardian email address is not valid (for\n example, if it is too long), or if the format of the student ID provided\n cannot be recognized (it is not an email address, nor a `user_id` from\n this API). This error will also be returned if read-only fields are set,\n or if the `state` field is set to to a value other than `PENDING`.\n* `NOT_FOUND` if the student ID provided is a valid student ID, but\n Classroom has no record of that student.\n* `ALREADY_EXISTS` if there is already a pending guardian invitation for\n the student and `invited_email_address` provided, or if the provided\n `invited_email_address` matches the Google account of an existing\n `Guardian` for this user.",
"response": {
"$ref": "GuardianInvitation"
},
"parameterOrder": [
"studentId"
],
"httpMethod": "POST",
"parameters": {
"studentId": {
"description": "ID of the student (in standard format)",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.students"
],
"flatPath": "v1/userProfiles/{studentId}/guardianInvitations",
"path": "v1/userProfiles/{studentId}/guardianInvitations",
"id": "classroom.userProfiles.guardianInvitations.create"
},
"list": {
"response": {
"$ref": "ListGuardianInvitationsResponse"
},
"parameterOrder": [
"studentId"
],
"httpMethod": "GET",
"parameters": {
2017-10-22 08:07:36 +00:00
"studentId": {
"description": "The ID of the student whose guardian invitations are to be returned.\nThe identifier can be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user\n* the string literal `\"-\"`, indicating that results should be returned for\n all students that the requesting user is permitted to view guardian\n invitations.",
"required": true,
"type": "string",
"location": "path"
},
"pageToken": {
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string",
"location": "query"
},
2017-10-22 08:07:36 +00:00
"invitedEmailAddress": {
"location": "query",
2017-10-22 08:07:36 +00:00
"description": "If specified, only results with the specified `invited_email_address`\nwill be returned.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"states": {
"repeated": true,
"location": "query",
2017-10-22 08:07:36 +00:00
"enum": [
"GUARDIAN_INVITATION_STATE_UNSPECIFIED",
"PENDING",
"COMPLETE"
],
"description": "If specified, only results with the specified `state` values will be\nreturned. Otherwise, results with a `state` of `PENDING` will be returned.",
"type": "string"
2017-10-22 08:07:36 +00:00
},
"pageSize": {
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer",
"location": "query"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.students",
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly"
],
"flatPath": "v1/userProfiles/{studentId}/guardianInvitations",
"path": "v1/userProfiles/{studentId}/guardianInvitations",
"id": "classroom.userProfiles.guardianInvitations.list",
"description": "Returns a list of guardian invitations that the requesting user is\npermitted to view, filtered by the parameters provided.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if a `student_id` is specified, and the requesting\n user is not permitted to view guardian invitations for that student, if\n `\"-\"` is specified as the `student_id` and the user is not a domain\n administrator, if guardians are not enabled for the domain in question,\n or for other access errors.\n* `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot\n be recognized (it is not an email address, nor a `student_id` from the\n API, nor the literal string `me`). May also be returned if an invalid\n `page_token` or `state` is provided.\n* `NOT_FOUND` if a `student_id` is specified, and its format can be\n recognized, but Classroom has no record of that student."
2017-10-22 08:07:36 +00:00
},
"get": {
"id": "classroom.userProfiles.guardianInvitations.get",
"path": "v1/userProfiles/{studentId}/guardianInvitations/{invitationId}",
"description": "Returns a specific guardian invitation.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the requesting user is not permitted to view\n guardian invitations for the student identified by the `student_id`, if\n guardians are not enabled for the domain in question, or for other\n access errors.\n* `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot\n be recognized (it is not an email address, nor a `student_id` from the\n API, nor the literal string `me`).\n* `NOT_FOUND` if Classroom cannot find any record of the given student or\n `invitation_id`. May also be returned if the student exists, but the\n requesting user does not have access to see that student.",
"httpMethod": "GET",
"parameterOrder": [
"studentId",
"invitationId"
],
"response": {
"$ref": "GuardianInvitation"
},
"parameters": {
2017-10-22 08:07:36 +00:00
"studentId": {
"location": "path",
2017-10-22 08:07:36 +00:00
"description": "The ID of the student whose guardian invitation is being requested.",
"required": true,
"type": "string"
},
"invitationId": {
"required": true,
2017-10-22 08:07:36 +00:00
"type": "string",
"location": "path",
"description": "The `id` field of the `GuardianInvitation` being requested."
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.students",
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly"
],
"flatPath": "v1/userProfiles/{studentId}/guardianInvitations/{invitationId}"
},
"patch": {
"flatPath": "v1/userProfiles/{studentId}/guardianInvitations/{invitationId}",
"path": "v1/userProfiles/{studentId}/guardianInvitations/{invitationId}",
"id": "classroom.userProfiles.guardianInvitations.patch",
"description": "Modifies a guardian invitation.\n\nCurrently, the only valid modification is to change the `state` from\n`PENDING` to `COMPLETE`. This has the effect of withdrawing the invitation.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if the current user does not have permission to\n manage guardians, if guardians are not enabled for the domain in question\n or for other access errors.\n* `FAILED_PRECONDITION` if the guardian link is not in the `PENDING` state.\n* `INVALID_ARGUMENT` if the format of the student ID provided\n cannot be recognized (it is not an email address, nor a `user_id` from\n this API), or if the passed `GuardianInvitation` has a `state` other than\n `COMPLETE`, or if it modifies fields other than `state`.\n* `NOT_FOUND` if the student ID provided is a valid student ID, but\n Classroom has no record of that student, or if the `id` field does not\n refer to a guardian invitation known to Classroom.",
"request": {
"$ref": "GuardianInvitation"
},
2017-10-22 08:07:36 +00:00
"response": {
"$ref": "GuardianInvitation"
},
"parameterOrder": [
"studentId",
"invitationId"
],
2017-10-22 08:07:36 +00:00
"httpMethod": "PATCH",
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.students"
],
"parameters": {
2017-10-22 08:07:36 +00:00
"invitationId": {
"required": true,
"type": "string",
"location": "path",
"description": "The `id` field of the `GuardianInvitation` to be modified."
},
2017-10-22 08:07:36 +00:00
"updateMask": {
"description": "Mask that identifies which fields on the course to update.\nThis field is required to do an update. The update will fail if invalid\nfields are specified. The following fields are valid:\n\n* `state`\n\nWhen set in a query parameter, this field should be specified as\n\n`updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...`",
"format": "google-fieldmask",
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "query"
},
"studentId": {
"required": true,
"type": "string",
2017-10-22 08:07:36 +00:00
"location": "path",
"description": "The ID of the student whose guardian invitation is to be modified."
}
}
2017-10-22 08:07:36 +00:00
}
}
},
"guardians": {
"methods": {
"delete": {
"description": "Deletes a guardian.\n\nThe guardian will no longer receive guardian notifications and the guardian\nwill no longer be accessible via the API.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if no user that matches the provided `student_id`\n is visible to the requesting user, if the requesting user is not\n permitted to manage guardians for the student identified by the\n `student_id`, if guardians are not enabled for the domain in question,\n or for other access errors.\n* `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot\n be recognized (it is not an email address, nor a `student_id` from the\n API).\n* `NOT_FOUND` if the requesting user is permitted to modify guardians for\n the requested `student_id`, but no `Guardian` record exists for that\n student with the provided `guardian_id`.",
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"studentId",
"guardianId"
],
"httpMethod": "DELETE",
"parameters": {
2017-10-22 08:07:36 +00:00
"studentId": {
"location": "path",
"description": "The student whose guardian is to be deleted. One of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"required": true,
2017-10-22 08:07:36 +00:00
"type": "string"
},
2017-10-22 08:07:36 +00:00
"guardianId": {
"description": "The `id` field from a `Guardian`.",
"required": true,
"type": "string",
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.students"
],
2017-10-22 08:07:36 +00:00
"flatPath": "v1/userProfiles/{studentId}/guardians/{guardianId}",
"path": "v1/userProfiles/{studentId}/guardians/{guardianId}",
"id": "classroom.userProfiles.guardians.delete"
},
"list": {
2017-10-22 08:07:36 +00:00
"description": "Returns a list of guardians that the requesting user is permitted to\nview, restricted to those that match the request.\n\nTo list guardians for any student that the requesting user may view\nguardians for, use the literal character `-` for the student ID.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if a `student_id` is specified, and the requesting\n user is not permitted to view guardian information for that student, if\n `\"-\"` is specified as the `student_id` and the user is not a domain\n administrator, if guardians are not enabled for the domain in question,\n if the `invited_email_address` filter is set by a user who is not a\n domain administrator, or for other access errors.\n* `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot\n be recognized (it is not an email address, nor a `student_id` from the\n API, nor the literal string `me`). May also be returned if an invalid\n `page_token` is provided.\n* `NOT_FOUND` if a `student_id` is specified, and its format can be\n recognized, but Classroom has no record of that student.",
"response": {
2017-10-22 08:07:36 +00:00
"$ref": "ListGuardiansResponse"
},
"parameterOrder": [
2017-10-22 08:07:36 +00:00
"studentId"
],
"httpMethod": "GET",
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly",
"https://www.googleapis.com/auth/classroom.guardianlinks.students",
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly"
],
"parameters": {
"studentId": {
"description": "Filter results by the student who the guardian is linked to.\nThe identifier can be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user\n* the string literal `\"-\"`, indicating that results should be returned for\n all students that the requesting user has access to view.",
"required": true,
"type": "string",
"location": "path"
},
"pageToken": {
2017-10-22 08:07:36 +00:00
"description": "nextPageToken\nvalue returned from a previous\nlist call,\nindicating that the subsequent page of results should be returned.\n\nThe list request\nmust be otherwise identical to the one that resulted in this token.",
"type": "string",
"location": "query"
2017-10-22 08:07:36 +00:00
},
"invitedEmailAddress": {
"description": "Filter results by the email address that the original invitation was sent\nto, resulting in this guardian link.\nThis filter can only be used by domain administrators.",
"type": "string",
"location": "query"
},
"pageSize": {
"location": "query",
2017-10-22 08:07:36 +00:00
"description": "Maximum number of items to return. Zero or unspecified indicates that the\nserver may assign a maximum.\n\nThe server may return fewer than the specified number of results.",
"format": "int32",
"type": "integer"
}
},
"flatPath": "v1/userProfiles/{studentId}/guardians",
"path": "v1/userProfiles/{studentId}/guardians",
"id": "classroom.userProfiles.guardians.list"
},
"get": {
"flatPath": "v1/userProfiles/{studentId}/guardians/{guardianId}",
"id": "classroom.userProfiles.guardians.get",
"path": "v1/userProfiles/{studentId}/guardians/{guardianId}",
"description": "Returns a specific guardian.\n\nThis method returns the following error codes:\n\n* `PERMISSION_DENIED` if no user that matches the provided `student_id`\n is visible to the requesting user, if the requesting user is not\n permitted to view guardian information for the student identified by the\n `student_id`, if guardians are not enabled for the domain in question,\n or for other access errors.\n* `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot\n be recognized (it is not an email address, nor a `student_id` from the\n API, nor the literal string `me`).\n* `NOT_FOUND` if the requesting user is permitted to view guardians for\n the requested `student_id`, but no `Guardian` record exists for that\n student that matches the provided `guardian_id`.",
"httpMethod": "GET",
"parameterOrder": [
2017-10-22 08:07:36 +00:00
"studentId",
"guardianId"
],
"response": {
"$ref": "Guardian"
},
"parameters": {
2017-10-22 08:07:36 +00:00
"studentId": {
"required": true,
2017-10-22 08:07:36 +00:00
"type": "string",
"location": "path",
"description": "The student whose guardian is being requested. One of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user"
},
2017-10-22 08:07:36 +00:00
"guardianId": {
"location": "path",
2017-10-22 08:07:36 +00:00
"description": "The `id` field from a `Guardian`.",
"required": true,
"type": "string"
}
2017-10-22 08:07:36 +00:00
},
"scopes": [
"https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly",
"https://www.googleapis.com/auth/classroom.guardianlinks.students",
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly"
]
2017-10-22 08:07:36 +00:00
}
}
}
}
},
"registrations": {
"methods": {
"create": {
"request": {
"$ref": "Registration"
},
"description": "Creates a `Registration`, causing Classroom to start sending notifications\nfrom the provided `feed` to the provided `destination`.\n\nReturns the created `Registration`. Currently, this will be the same as\nthe argument, but with server-assigned fields such as `expiry_time` and\n`id` filled in.\n\nNote that any value specified for the `expiry_time` or `id` fields will be\nignored.\n\nWhile Classroom may validate the `destination` and return errors on a best\neffort basis, it is the caller's responsibility to ensure that it exists\nand that Classroom has permission to publish to it.\n\nThis method may return the following error codes:\n\n* `PERMISSION_DENIED` if:\n * the authenticated user does not have permission to receive\n notifications from the requested field; or\n * the credential provided does not include the appropriate scope for the\n requested feed.\n * another access error is encountered.\n* `INVALID_ARGUMENT` if:\n * no `destination` is specified, or the specified `destination` is not\n valid; or\n * no `feed` is specified, or the specified `feed` is not valid.\n* `NOT_FOUND` if:\n * the specified `feed` cannot be located, or the requesting user does not\n have permission to determine whether or not it exists; or\n * the specified `destination` cannot be located, or Classroom has not\n been granted permission to publish to it.",
"response": {
"$ref": "Registration"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"scopes": [
"https://www.googleapis.com/auth/classroom.push-notifications",
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"flatPath": "v1/registrations",
"path": "v1/registrations",
"id": "classroom.registrations.create"
},
2017-10-22 08:07:36 +00:00
"delete": {
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"registrationId"
],
"httpMethod": "DELETE",
"scopes": [
"https://www.googleapis.com/auth/classroom.push-notifications",
2017-10-22 08:07:36 +00:00
"https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"
],
"parameters": {
"registrationId": {
"description": "The `registration_id` of the `Registration` to be deleted.",
"required": true,
"type": "string",
"location": "path"
}
2017-10-22 08:07:36 +00:00
},
"flatPath": "v1/registrations/{registrationId}",
"path": "v1/registrations/{registrationId}",
"id": "classroom.registrations.delete",
"description": "Deletes a `Registration`, causing Classroom to stop sending notifications\nfor that `Registration`."
2017-08-05 18:17:15 +00:00
}
}
}
},
"parameters": {
"key": {
"type": "string",
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token."
2017-09-21 15:48:45 +00:00
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format."
2017-09-13 12:09:48 +00:00
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
}
},
"schemas": {
2017-10-22 08:07:36 +00:00
"Date": {
"id": "Date",
"description": "Represents a whole calendar date, e.g. date of birth. The time of day and\ntime zone are either specified elsewhere or are not significant. The date\nis relative to the Proleptic Gregorian Calendar. The day may be 0 to\nrepresent a year and month where the day is not significant, e.g. credit card\nexpiration date. The year may be 0 to represent a month and day independent\nof year, e.g. anniversary date. Related types are google.type.TimeOfDay\nand `google.protobuf.Timestamp`.",
"type": "object",
"properties": {
"month": {
"description": "Month of year. Must be from 1 to 12.",
"format": "int32",
"type": "integer"
},
2017-10-22 08:07:36 +00:00
"year": {
"description": "Year of date. Must be from 1 to 9999, or 0 if specifying a date without\na year.",
"format": "int32",
"type": "integer"
},
2017-10-22 08:07:36 +00:00
"day": {
"description": "Day of month. Must be from 1 to 31 and valid for the year and month, or 0\nif specifying a year/month where the day is not significant.",
"format": "int32",
"type": "integer"
}
}
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"Name": {
"description": "Details of the user's name.",
"type": "object",
2017-09-13 12:09:48 +00:00
"properties": {
2017-10-22 08:07:36 +00:00
"givenName": {
"description": "The user's first name.\n\nRead-only.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"familyName": {
"description": "The user's last name.\n\nRead-only.",
"type": "string"
},
"fullName": {
"description": "The user's full name formed by concatenating the first and last name\nvalues.\n\nRead-only.",
"type": "string"
}
},
"id": "Name"
2017-10-22 08:07:36 +00:00
},
"Assignment": {
"description": "Additional details for assignments.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"studentWorkFolder": {
"$ref": "DriveFolder",
"description": "Drive folder where attachments from student submissions are placed.\nThis is only populated for course teachers and administrators."
2017-09-13 12:09:48 +00:00
}
},
"id": "Assignment"
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"SharedDriveFile": {
"description": "Drive file that is used as material for course work.",
2017-09-13 12:09:48 +00:00
"type": "object",
"properties": {
2017-10-22 08:07:36 +00:00
"driveFile": {
"description": "Drive file details.",
"$ref": "DriveFile"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"shareMode": {
"enum": [
"UNKNOWN_SHARE_MODE",
"VIEW",
"EDIT",
"STUDENT_COPY"
],
"description": "Mechanism by which students access the Drive item.",
"type": "string",
2017-10-22 08:07:36 +00:00
"enumDescriptions": [
"No sharing mode specified. This should never be returned.",
"Students can view the shared file.",
"Students can edit the shared file.",
"Students have a personal copy of the shared file."
]
}
2017-10-22 08:07:36 +00:00
},
"id": "SharedDriveFile"
},
2017-10-22 08:07:36 +00:00
"Empty": {
"id": "Empty",
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {}
},
2017-10-22 08:07:36 +00:00
"GlobalPermission": {
"type": "object",
"properties": {
2017-10-22 08:07:36 +00:00
"permission": {
"enumDescriptions": [
"No permission is specified. This is not returned and is not a\nvalid value.",
"User is permitted to create a course."
],
2017-10-22 08:07:36 +00:00
"enum": [
"PERMISSION_UNSPECIFIED",
"CREATE_COURSE"
],
"description": "Permission value.",
"type": "string"
}
},
"id": "GlobalPermission",
"description": "Global user permission description."
},
"ModifyAnnouncementAssigneesRequest": {
"description": "Request to modify assignee mode and options of an announcement.",
"type": "object",
"properties": {
"assigneeMode": {
"description": "Mode of the announcement describing whether it will be accessible by all\nstudents or specified individual students.",
"type": "string",
"enumDescriptions": [
"No mode specified. This is never returned.",
"All students can see the item.\nThis is the default state.",
"A subset of the students can see the item."
],
"enum": [
"ASSIGNEE_MODE_UNSPECIFIED",
"ALL_STUDENTS",
"INDIVIDUAL_STUDENTS"
]
},
"modifyIndividualStudentsOptions": {
"description": "Set which students can view or cannot view the announcement.\nMust be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`.",
"$ref": "ModifyIndividualStudentsOptions"
}
},
"id": "ModifyAnnouncementAssigneesRequest"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"Teacher": {
"id": "Teacher",
"description": "Teacher of a course.",
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
"courseId": {
"type": "string",
"description": "Identifier of the course.\n\nRead-only."
},
2017-10-22 08:07:36 +00:00
"profile": {
"description": "Global user information for the teacher.\n\nRead-only.",
"$ref": "UserProfile"
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"userId": {
"description": "Identifier of the user.\n\nWhen specified as a parameter of a request, this identifier can be one of\nthe following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"type": "string"
2017-09-21 15:48:45 +00:00
}
}
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"GradeHistory": {
"description": "The history of each grade on this submission.",
2017-09-21 15:48:45 +00:00
"type": "object",
"properties": {
"actorUserId": {
"description": "The teacher who made the grade change.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"gradeTimestamp": {
"type": "string",
2017-10-22 08:07:36 +00:00
"description": "When the grade of the submission was changed.",
"format": "google-datetime"
2017-10-22 08:07:36 +00:00
},
"gradeChangeType": {
"description": "The type of grade change at this time in the submission grade history.",
"type": "string",
2017-10-22 08:07:36 +00:00
"enumDescriptions": [
"No grade change type specified. This should never be returned.",
"A change in the numerator of the draft grade.",
"A change in the numerator of the assigned grade.",
"A change in the denominator of the grade."
],
"enum": [
"UNKNOWN_GRADE_CHANGE_TYPE",
"DRAFT_GRADE_POINTS_EARNED_CHANGE",
"ASSIGNED_GRADE_POINTS_EARNED_CHANGE",
"MAX_POINTS_CHANGE"
]
2017-10-22 08:07:36 +00:00
},
"maxPoints": {
"description": "The denominator of the grade at this time in the submission grade\nhistory.",
"format": "double",
"type": "number"
},
"pointsEarned": {
"description": "The numerator of the grade at this time in the submission grade history.",
"format": "double",
"type": "number"
2017-09-21 15:48:45 +00:00
}
},
2017-10-22 08:07:36 +00:00
"id": "GradeHistory"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"AssignmentSubmission": {
"description": "Student work for an assignment.",
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
2017-10-22 08:07:36 +00:00
"attachments": {
"description": "Attachments added by the student.\nDrive files that correspond to materials with a share mode of\nSTUDENT_COPY may not exist yet if the student has not accessed the\nassignment in Classroom.\n\nSome attachment metadata is only populated if the requesting user has\npermission to access it. Identifier and alternate_link fields are always\navailable, but others (e.g. title) may not be.",
"type": "array",
2017-09-21 15:48:45 +00:00
"items": {
2017-10-22 08:07:36 +00:00
"$ref": "Attachment"
}
}
},
"id": "AssignmentSubmission"
},
2017-10-22 08:07:36 +00:00
"Material": {
"description": "Material attached to course work.\n\nWhen creating attachments, setting the `form` field is not supported.",
"type": "object",
"properties": {
2017-10-22 08:07:36 +00:00
"form": {
"$ref": "Form",
"description": "Google Forms material."
},
2017-10-22 08:07:36 +00:00
"link": {
"description": "Link material. On creation, will be upgraded to a more appropriate type\nif possible, and this will be reflected in the response.",
"$ref": "Link"
},
"youtubeVideo": {
"description": "YouTube video material.",
"$ref": "YouTubeVideo"
},
"driveFile": {
"description": "Google Drive file material.",
"$ref": "SharedDriveFile"
2017-09-21 15:48:45 +00:00
}
},
2017-10-22 08:07:36 +00:00
"id": "Material"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"Feed": {
2017-09-21 15:48:45 +00:00
"properties": {
2017-10-22 08:07:36 +00:00
"feedType": {
"enumDescriptions": [
"Should never be returned or provided.",
"All roster changes for a particular domain.\n\nNotifications will be generated whenever a user joins or leaves a course.\n\nNo notifications will be generated when an invitation is created or\ndeleted, but notifications will be generated when a user joins a course\nby accepting an invitation.",
"All roster changes for a particular course.\n\nNotifications will be generated whenever a user joins or leaves a course.\n\nNo notifications will be generated when an invitation is created or\ndeleted, but notifications will be generated when a user joins a course\nby accepting an invitation."
],
"enum": [
"FEED_TYPE_UNSPECIFIED",
"DOMAIN_ROSTER_CHANGES",
"COURSE_ROSTER_CHANGES"
],
"description": "The type of feed.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"courseRosterChangesInfo": {
"description": "Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`.\nThis field must be specified if `feed_type` is `COURSE_ROSTER_CHANGES`.",
"$ref": "CourseRosterChangesInfo"
2017-09-21 15:48:45 +00:00
}
},
"id": "Feed",
"description": "A class of notifications that an application can register to receive.\nFor example: \"all roster changes for a domain\".",
"type": "object"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"Student": {
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
"userId": {
"description": "Identifier of the user.\n\nWhen specified as a parameter of a request, this identifier can be one of\nthe following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
"type": "string"
},
"courseId": {
"type": "string",
"description": "Identifier of the course.\n\nRead-only."
},
2017-10-22 08:07:36 +00:00
"profile": {
"$ref": "UserProfile",
"description": "Global user information for the student.\n\nRead-only."
},
2017-10-22 08:07:36 +00:00
"studentWorkFolder": {
"$ref": "DriveFolder",
"description": "Information about a Drive Folder for this student's work in this course.\nOnly visible to the student and domain administrators.\n\nRead-only."
2017-10-22 08:07:36 +00:00
}
},
"id": "Student",
"description": "Student in a course."
2017-10-22 08:07:36 +00:00
},
"Invitation": {
"properties": {
"courseId": {
"description": "Identifier of the course to invite the user to.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"id": {
"description": "Identifier assigned by Classroom.\n\nRead-only.",
"type": "string"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"role": {
"enumDescriptions": [
"No course role.",
"Student in the course.",
"Teacher of the course.",
"Owner of the course."
],
"enum": [
2017-10-22 08:07:36 +00:00
"COURSE_ROLE_UNSPECIFIED",
"STUDENT",
"TEACHER",
"OWNER"
],
2017-10-22 08:07:36 +00:00
"description": "Role to invite the user to have.\nMust not be `COURSE_ROLE_UNSPECIFIED`.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"userId": {
"description": "Identifier of the invited user.\n\nWhen specified as a parameter of a request, this identifier can be set to\none of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user",
2017-09-21 15:48:45 +00:00
"type": "string"
}
},
"id": "Invitation",
"description": "An invitation to join a course.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
2017-10-22 08:07:36 +00:00
"TurnInStudentSubmissionRequest": {
"description": "Request to turn in a student submission.",
"type": "object",
"properties": {},
"id": "TurnInStudentSubmissionRequest"
2017-10-22 08:07:36 +00:00
},
"ListCourseWorkResponse": {
"description": "Response when listing course work.",
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
2017-10-22 08:07:36 +00:00
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
2017-09-21 15:48:45 +00:00
"type": "string"
},
2017-10-22 08:07:36 +00:00
"courseWork": {
"description": "Course work items that match the request.",
"type": "array",
"items": {
"$ref": "CourseWork"
}
}
},
"id": "ListCourseWorkResponse"
2017-10-22 08:07:36 +00:00
},
"Attachment": {
"description": "Attachment added to student assignment work.\n\nWhen creating attachments, setting the `form` field is not supported.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"driveFile": {
"$ref": "DriveFile",
"description": "Google Drive file attachment."
},
"youTubeVideo": {
"$ref": "YouTubeVideo",
"description": "Youtube video attachment."
},
"form": {
"$ref": "Form",
"description": "Google Forms attachment."
},
"link": {
"$ref": "Link",
"description": "Link attachment."
2017-09-13 12:09:48 +00:00
}
},
"id": "Attachment"
},
"ListTopicResponse": {
"description": "Response when listing topics.",
"type": "object",
"properties": {
"topic": {
"description": "Topic items that match the request.",
"type": "array",
"items": {
"$ref": "Topic"
}
},
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
}
},
"id": "ListTopicResponse"
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"ListAnnouncementsResponse": {
"description": "Response when listing course work.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"announcements": {
"type": "array",
"items": {
"$ref": "Announcement"
},
"description": "Announcement items that match the request."
2017-10-22 08:07:36 +00:00
},
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
}
},
"id": "ListAnnouncementsResponse"
},
2017-10-22 08:07:36 +00:00
"TimeOfDay": {
"description": "Represents a time of day. The date and time zone are either not significant\nor are specified elsewhere. An API may choose to allow leap seconds. Related\ntypes are google.type.Date and `google.protobuf.Timestamp`.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"minutes": {
"description": "Minutes of hour of day. Must be from 0 to 59.",
"format": "int32",
"type": "integer"
},
"hours": {
"description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose\nto allow the value \"24:00:00\" for scenarios like business closing time.",
"format": "int32",
"type": "integer"
},
2017-10-22 08:07:36 +00:00
"nanos": {
"description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.",
"format": "int32",
"type": "integer"
},
"seconds": {
"type": "integer",
2017-10-22 08:07:36 +00:00
"description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may\nallow the value 60 if it allows leap-seconds.",
"format": "int32"
2017-10-22 08:07:36 +00:00
}
},
"id": "TimeOfDay"
},
2017-10-22 08:07:36 +00:00
"ListCoursesResponse": {
"description": "Response when listing courses.",
2017-09-13 12:09:48 +00:00
"type": "object",
"properties": {
2017-10-22 08:07:36 +00:00
"courses": {
"description": "Courses that match the list request.",
"type": "array",
"items": {
"$ref": "Course"
}
},
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
2017-09-13 12:09:48 +00:00
}
},
2017-10-22 08:07:36 +00:00
"id": "ListCoursesResponse"
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"Form": {
"description": "Google Forms item.",
2017-09-13 12:09:48 +00:00
"type": "object",
"properties": {
"title": {
"description": "Title of the Form.\n\nRead-only.",
2017-09-13 12:09:48 +00:00
"type": "string"
},
"thumbnailUrl": {
"type": "string",
"description": "URL of a thumbnail image of the Form.\n\nRead-only."
},
2017-10-22 08:07:36 +00:00
"responseUrl": {
"description": "URL of the form responses document.\nOnly set if respsonses have been recorded and only when the\nrequesting user is an editor of the form.\n\nRead-only.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"formUrl": {
"description": "URL of the form.",
"type": "string"
}
},
"id": "Form"
2017-10-22 08:07:36 +00:00
},
"ModifyCourseWorkAssigneesRequest": {
"properties": {
"modifyIndividualStudentsOptions": {
"$ref": "ModifyIndividualStudentsOptions",
"description": "Set which students are assigned or not assigned to the coursework.\nMust be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`."
},
"assigneeMode": {
"description": "Mode of the coursework describing whether it will be assigned to all\nstudents or specified individual students.",
"type": "string",
"enumDescriptions": [
"No mode specified. This is never returned.",
"All students can see the item.\nThis is the default state.",
"A subset of the students can see the item."
],
"enum": [
"ASSIGNEE_MODE_UNSPECIFIED",
"ALL_STUDENTS",
"INDIVIDUAL_STUDENTS"
]
2017-10-22 08:07:36 +00:00
}
},
"id": "ModifyCourseWorkAssigneesRequest",
"description": "Request to modify assignee mode and options of a coursework.",
"type": "object"
2017-10-22 08:07:36 +00:00
},
"ListGuardiansResponse": {
"properties": {
"guardians": {
"description": "Guardians on this page of results that met the criteria specified in\nthe request.",
"type": "array",
"items": {
"$ref": "Guardian"
}
},
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"id": "ListGuardiansResponse",
"description": "Response when listing guardians.",
"type": "object"
2017-09-21 15:48:45 +00:00
},
"CourseAlias": {
"description": "Alternative identifier for a course.\n\nAn alias uniquely identifies a course. It must be unique within one of the\nfollowing scopes:\n\n* domain: A domain-scoped alias is visible to all users within the alias\ncreator's domain and can be created only by a domain admin. A domain-scoped\nalias is often used when a course has an identifier external to Classroom.\n\n* project: A project-scoped alias is visible to any request from an\napplication using the Developer Console project ID that created the alias\nand can be created by any project. A project-scoped alias is often used when\nan application has alternative identifiers. A random value can also be used\nto avoid duplicate courses in the event of transmission failures, as retrying\na request will return `ALREADY_EXISTS` if a previous one has succeeded.",
2017-09-21 15:48:45 +00:00
"type": "object",
"properties": {
"alias": {
"description": "Alias string. The format of the string indicates the desired alias scoping.\n\n* `d:\u003cname\u003e` indicates a domain-scoped alias.\n Example: `d:math_101`\n* `p:\u003cname\u003e` indicates a project-scoped alias.\n Example: `p:abc123`\n\nThis field has a maximum length of 256 characters.",
"type": "string"
2017-10-22 08:07:36 +00:00
}
},
"id": "CourseAlias"
2017-10-22 08:07:36 +00:00
},
"ListCourseAliasesResponse": {
"description": "Response when listing course aliases.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"aliases": {
"description": "The course aliases.",
"type": "array",
"items": {
"$ref": "CourseAlias"
}
},
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
2017-09-13 12:09:48 +00:00
}
2017-10-22 08:07:36 +00:00
},
"id": "ListCourseAliasesResponse"
2017-09-13 12:09:48 +00:00
},
"ListGuardianInvitationsResponse": {
2017-09-13 12:09:48 +00:00
"properties": {
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
2017-09-21 15:48:45 +00:00
"type": "string"
},
"guardianInvitations": {
"description": "Guardian invitations that matched the list request.",
"type": "array",
"items": {
"$ref": "GuardianInvitation"
}
2017-10-22 08:07:36 +00:00
}
},
"id": "ListGuardianInvitationsResponse",
"description": "Response when listing guardian invitations.",
"type": "object"
2017-10-22 08:07:36 +00:00
},
"IndividualStudentsOptions": {
"description": "Assignee details about a coursework/announcement.\nThis field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.",
"type": "object",
"properties": {
"studentIds": {
"description": "Identifiers for the students that have access to the\ncoursework/announcement.",
"type": "array",
"items": {
"type": "string"
}
}
},
"id": "IndividualStudentsOptions"
},
"MultipleChoiceSubmission": {
"description": "Student work for a multiple-choice question.",
"type": "object",
"properties": {
"answer": {
"description": "Student's select choice.",
"type": "string"
}
},
"id": "MultipleChoiceSubmission"
},
2017-10-22 08:07:36 +00:00
"Registration": {
"type": "object",
"properties": {
"registrationId": {
"description": "A server-generated unique identifier for this `Registration`.\n\nRead-only.",
"type": "string"
},
"cloudPubsubTopic": {
"$ref": "CloudPubsubTopic",
"description": "The Cloud Pub/Sub topic that notifications are to be sent to."
},
"expiryTime": {
"description": "The time until which the `Registration` is effective.\n\nThis is a read-only field assigned by the server.",
"format": "google-datetime",
"type": "string"
},
"feed": {
"description": "Specification for the class of notifications that Classroom should deliver\nto the `destination`.",
"$ref": "Feed"
}
},
"id": "Registration",
"description": "An instruction to Classroom to send notifications from the `feed` to the\nprovided `destination`."
},
"CourseMaterial": {
"description": "A material attached to a course as part of a material set.",
"type": "object",
"properties": {
"driveFile": {
"$ref": "DriveFile",
"description": "Google Drive file attachment."
},
"youTubeVideo": {
"description": "Youtube video attachment.",
"$ref": "YouTubeVideo"
},
"form": {
"description": "Google Forms attachment.",
"$ref": "Form"
},
"link": {
"$ref": "Link",
"description": "Link atatchment."
}
},
"id": "CourseMaterial"
},
"MultipleChoiceQuestion": {
"id": "MultipleChoiceQuestion",
"description": "Additional details for multiple-choice questions.",
"type": "object",
"properties": {
"choices": {
"description": "Possible choices.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Course": {
"type": "object",
"properties": {
"calendarId": {
"description": "The Calendar ID for a calendar that all course members can see, to which\nClassroom adds events for course work and announcements in the course.\n\nRead-only.",
"type": "string"
},
"updateTime": {
"description": "Time of the most recent update to this course.\nSpecifying this field in a course update mask results in an error.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"alternateLink": {
"description": "Absolute link to this course in the Classroom web UI.\n\nRead-only.",
"type": "string"
},
"guardiansEnabled": {
"description": "Whether or not guardian notifications are enabled for this course.\n\nRead-only.",
"type": "boolean"
},
"courseState": {
"enumDescriptions": [
"No course state. No returned Course message will use this value.",
"The course is active.",
"The course has been archived. You cannot modify it except to change it\nto a different state.",
"The course has been created, but not yet activated. It is accessible by\nthe primary teacher and domain administrators, who may modify it or\nchange it to the `ACTIVE` or `DECLINED` states.\nA course may only be changed to `PROVISIONED` if it is in the `DECLINED`\nstate.",
"The course has been created, but declined. It is accessible by the\ncourse owner and domain administrators, though it will not be\ndisplayed in the web UI. You cannot modify the course except to change it\nto the `PROVISIONED` state.\nA course may only be changed to `DECLINED` if it is in the `PROVISIONED`\nstate.",
"The course has been suspended. You cannot modify the course, and only the\nuser identified by the `owner_id` can view the course.\nA course may be placed in this state if it potentially violates the\nTerms of Service."
],
"enum": [
"COURSE_STATE_UNSPECIFIED",
"ACTIVE",
"ARCHIVED",
"PROVISIONED",
"DECLINED",
"SUSPENDED"
],
"description": "State of the course.\nIf unspecified, the default state is `PROVISIONED`.",
"type": "string"
},
"ownerId": {
"type": "string",
"description": "The identifier of the owner of a course.\n\nWhen specified as a parameter of a\ncreate course request, this\nfield is required.\nThe identifier can be one of the following:\n\n* the numeric identifier for the user\n* the email address of the user\n* the string literal `\"me\"`, indicating the requesting user\n\nThis must be set in a create request. Admins can also specify this field\nin a patch course request to\ntransfer ownership. In other contexts, it is read-only."
},
"description": {
"description": "Optional description.\nFor example, \"We'll be learning about the structure of living\ncreatures from a combination of textbooks, guest lectures, and lab work.\nExpect to be excited!\"\nIf set, this field must be a valid UTF-8 string and no longer than 30,000\ncharacters.",
"type": "string"
},
"teacherGroupEmail": {
"description": "The email address of a Google group containing all teachers of the course.\nThis group does not accept email and can only be used for permissions.\n\nRead-only.",
"type": "string"
},
"creationTime": {
"description": "Creation time of the course.\nSpecifying this field in a course update mask results in an error.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"name": {
"type": "string",
"description": "Name of the course.\nFor example, \"10th Grade Biology\".\nThe name is required. It must be between 1 and 750 characters and a valid\nUTF-8 string."
},
"teacherFolder": {
"$ref": "DriveFolder",
"description": "Information about a Drive Folder that is shared with all teachers of the\ncourse.\n\nThis field will only be set for teachers of the course and domain administrators.\n\nRead-only."
},
"section": {
"description": "Section of the course.\nFor example, \"Period 2\".\nIf set, this field must be a valid UTF-8 string and no longer than 2800\ncharacters.",
"type": "string"
},
"id": {
"description": "Identifier for this course assigned by Classroom.\n\nWhen\ncreating a course,\nyou may optionally set this identifier to an\nalias string in the\nrequest to create a corresponding alias. The `id` is still assigned by\nClassroom and cannot be updated after the course is created.\n\nSpecifying this field in a course update mask results in an error.",
"type": "string"
},
"room": {
"description": "Optional room location.\nFor example, \"301\".\nIf set, this field must be a valid UTF-8 string and no longer than 650\ncharacters.",
"type": "string"
},
"courseGroupEmail": {
"description": "The email address of a Google group containing all members of the course.\nThis group does not accept email and can only be used for permissions.\n\nRead-only.",
"type": "string"
},
"courseMaterialSets": {
"description": "Sets of materials that appear on the \"about\" page of this course.\n\nRead-only.",
"type": "array",
"items": {
"$ref": "CourseMaterialSet"
}
},
"enrollmentCode": {
"description": "Enrollment code to use when joining this course.\nSpecifying this field in a course update mask results in an error.\n\nRead-only.",
"type": "string"
},
"descriptionHeading": {
"description": "Optional heading for the description.\nFor example, \"Welcome to 10th Grade Biology.\"\nIf set, this field must be a valid UTF-8 string and no longer than 3600\ncharacters.",
"type": "string"
2017-09-21 15:48:45 +00:00
}
},
"id": "Course",
"description": "A Course in Classroom."
2017-09-21 15:48:45 +00:00
},
"DriveFile": {
"description": "Representation of a Google Drive file.",
2017-10-22 08:07:36 +00:00
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
"id": {
"description": "Drive API resource ID.",
"type": "string"
},
"title": {
"description": "Title of the Drive item.\n\nRead-only.",
"type": "string"
},
"alternateLink": {
"description": "URL that can be used to access the Drive item.\n\nRead-only.",
"type": "string"
},
"thumbnailUrl": {
"description": "URL of a thumbnail image of the Drive item.\n\nRead-only.",
"type": "string"
2017-10-22 08:07:36 +00:00
}
},
"id": "DriveFile"
2017-10-22 08:07:36 +00:00
},
"ReturnStudentSubmissionRequest": {
"description": "Request to return a student submission.",
"type": "object",
"properties": {},
"id": "ReturnStudentSubmissionRequest"
},
"ReclaimStudentSubmissionRequest": {
"description": "Request to reclaim a student submission.",
2017-10-22 08:07:36 +00:00
"type": "object",
"properties": {},
"id": "ReclaimStudentSubmissionRequest"
},
"CourseRosterChangesInfo": {
"description": "Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`.",
"type": "object",
2017-10-22 08:07:36 +00:00
"properties": {
"courseId": {
"description": "The `course_id` of the course to subscribe to roster changes for.",
"type": "string"
2017-10-22 08:07:36 +00:00
}
},
"id": "CourseRosterChangesInfo"
},
"Topic": {
"description": "Topic created by a teacher for the course",
"type": "object",
"properties": {
"updateTime": {
"description": "The time the topic was last updated by the system.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"name": {
"description": "The name of the topic, generated by the user.\nLeading and trailing whitespaces, if any, will be trimmed. Also, multiple\nconsecutive whitespaces will be collapsed into one inside the name.\nTopic names are case sensitive, and must be no longer than 100 characters.",
"type": "string"
},
"topicId": {
"description": "Unique identifier for the topic.\n\nRead-only.",
"type": "string"
},
"courseId": {
"description": "Identifier of the course.\n\nRead-only.",
"type": "string"
}
},
"id": "Topic"
2017-10-22 08:07:36 +00:00
},
"CourseWork": {
2017-10-22 08:07:36 +00:00
"type": "object",
"properties": {
"materials": {
"description": "Additional materials.\n\nCourseWork must have no more than 20 material items.",
"type": "array",
"items": {
"$ref": "Material"
}
},
"associatedWithDeveloper": {
"description": "Whether this course work item is associated with the Developer Console\nproject making the request.\n\nSee google.classroom.Work.CreateCourseWork for more\ndetails.\n\nRead-only.",
"type": "boolean"
},
"updateTime": {
"description": "Timestamp of the most recent change to this course work.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"alternateLink": {
"description": "Absolute link to this course work in the Classroom web UI.\nThis is only populated if `state` is `PUBLISHED`.\n\nRead-only.",
"type": "string"
},
"assigneeMode": {
"enumDescriptions": [
"No mode specified. This is never returned.",
"All students can see the item.\nThis is the default state.",
"A subset of the students can see the item."
],
"enum": [
"ASSIGNEE_MODE_UNSPECIFIED",
"ALL_STUDENTS",
"INDIVIDUAL_STUDENTS"
2017-09-21 15:48:45 +00:00
],
"description": "Assignee mode of the coursework.\nIf unspecified, the default value is `ALL_STUDENTS`.",
"type": "string"
},
"maxPoints": {
"description": "Maximum grade for this course work.\nIf zero or unspecified, this assignment is considered ungraded.\nThis must be a non-negative integer value.",
"format": "double",
"type": "number"
},
"multipleChoiceQuestion": {
"$ref": "MultipleChoiceQuestion",
"description": "Multiple choice question details.\nFor read operations, this field is populated only when `work_type` is\n`MULTIPLE_CHOICE_QUESTION`.\nFor write operations, this field must be specified when creating course\nwork with a `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be\nset otherwise."
},
"assignment": {
"description": "Assignment details.\nThis is populated only when `work_type` is `ASSIGNMENT`.\n\nRead-only.",
"$ref": "Assignment"
},
"workType": {
"enumDescriptions": [
"No work type specified. This is never returned.",
"An assignment.",
"A short answer question.",
"A multiple-choice question."
],
2017-09-21 15:48:45 +00:00
"enum": [
"COURSE_WORK_TYPE_UNSPECIFIED",
"ASSIGNMENT",
"SHORT_ANSWER_QUESTION",
"MULTIPLE_CHOICE_QUESTION"
2017-09-21 15:48:45 +00:00
],
"description": "Type of this course work.\n\nThe type is set when the course work is created and cannot be changed.",
"type": "string"
2017-10-22 08:07:36 +00:00
},
"scheduledTime": {
"description": "Optional timestamp when this course work is scheduled to be published.",
"format": "google-datetime",
"type": "string"
},
"description": {
"description": "Optional description of this course work.\nIf set, the description must be a valid UTF-8 string containing no more\nthan 30,000 characters.",
"type": "string"
},
"creationTime": {
"description": "Timestamp when this course work was created.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"dueDate": {
"description": "Optional date, in UTC, that submissions for this this course work are due.\nThis must be specified if `due_time` is specified.",
"$ref": "Date"
},
"individualStudentsOptions": {
"description": "Identifiers of students with access to the coursework.\nThis field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.\nIf the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students\nspecified in this field will be assigned the coursework.",
"$ref": "IndividualStudentsOptions"
},
"creatorUserId": {
"description": "Identifier for the user that created the coursework.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"state": {
"enumDescriptions": [
"No state specified. This is never returned.",
"Status for work that has been published.\nThis is the default state.",
"Status for work that is not yet published.\nWork in this state is visible only to course teachers and domain\nadministrators.",
"Status for work that was published but is now deleted.\nWork in this state is visible only to course teachers and domain\nadministrators.\nWork in this state is deleted after some time."
],
"enum": [
"COURSE_WORK_STATE_UNSPECIFIED",
"PUBLISHED",
"DRAFT",
"DELETED"
],
"description": "Status of this course work.\nIf unspecified, the default state is `DRAFT`.",
"type": "string"
},
"submissionModificationMode": {
"enumDescriptions": [
"No modification mode specified. This is never returned.",
"Submisisons can be modified before being turned in.",
"Submisisons can be modified at any time."
],
"enum": [
"SUBMISSION_MODIFICATION_MODE_UNSPECIFIED",
"MODIFIABLE_UNTIL_TURNED_IN",
"MODIFIABLE"
],
"description": "Setting to determine when students are allowed to modify submissions.\nIf unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.",
"type": "string"
},
"courseId": {
"description": "Identifier of the course.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"id": {
"description": "Classroom-assigned identifier of this course work, unique per course.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"dueTime": {
"description": "Optional time of day, in UTC, that submissions for this this course work\nare due.\nThis must be specified if `due_date` is specified.",
"$ref": "TimeOfDay"
2017-10-22 08:07:36 +00:00
},
"title": {
"description": "Title of this course work.\nThe title must be a valid UTF-8 string containing between 1 and 3000\ncharacters.",
"type": "string"
}
},
"id": "CourseWork",
"description": "Course work created by a teacher for students of the course."
},
"Guardian": {
"type": "object",
"properties": {
"studentId": {
"description": "Identifier for the student to whom the guardian relationship applies.",
2017-10-22 08:07:36 +00:00
"type": "string"
},
"guardianId": {
"description": "Identifier for the guardian.",
"type": "string"
},
"invitedEmailAddress": {
"description": "The email address to which the initial guardian invitation was sent.\nThis field is only visible to domain administrators.",
"type": "string"
},
"guardianProfile": {
"description": "User profile for the guardian.",
"$ref": "UserProfile"
2017-09-21 15:48:45 +00:00
}
},
"id": "Guardian",
"description": "Association between a student and a guardian of that student. The guardian\nmay receive information about the student's course work."
2017-09-21 15:48:45 +00:00
},
"ListStudentsResponse": {
"type": "object",
2017-09-21 15:48:45 +00:00
"properties": {
"students": {
"description": "Students who match the list request.",
"type": "array",
"items": {
"$ref": "Student"
}
2017-10-22 08:07:36 +00:00
},
"nextPageToken": {
"type": "string",
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available."
}
},
"id": "ListStudentsResponse",
"description": "Response when listing students."
},
"UserProfile": {
"properties": {
"photoUrl": {
"description": "URL of user's profile photo.\n\nRead-only.",
2017-09-21 15:48:45 +00:00
"type": "string"
},
"permissions": {
"description": "Global permissions of the user.\n\nRead-only.",
"type": "array",
"items": {
"$ref": "GlobalPermission"
}
},
"name": {
"description": "Name of the user.\n\nRead-only.",
"$ref": "Name"
},
"id": {
"description": "Identifier of the user.\n\nRead-only.",
2017-09-21 15:48:45 +00:00
"type": "string"
},
"verifiedTeacher": {
"description": "Represents whether a G Suite for Education user's domain administrator has\nexplicitly verified them as being a teacher. If the user is not a member of\na G Suite for Education domain, than this field will always be false.\n\nRead-only",
"type": "boolean"
},
"emailAddress": {
"description": "Email address of the user.\n\nRead-only.",
2017-09-21 15:48:45 +00:00
"type": "string"
}
},
"id": "UserProfile",
"description": "Global information for a user.",
"type": "object"
},
"Announcement": {
"description": "Announcement created by a teacher for students of the course",
"type": "object",
"properties": {
2017-10-22 08:07:36 +00:00
"scheduledTime": {
"description": "Optional timestamp when this announcement is scheduled to be published.",
2017-09-13 12:09:48 +00:00
"format": "google-datetime",
2017-09-21 15:48:45 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
2017-10-22 08:07:36 +00:00
"creationTime": {
"description": "Timestamp when this announcement was created.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"format": "google-datetime",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"individualStudentsOptions": {
"$ref": "IndividualStudentsOptions",
"description": "Identifiers of students with access to the announcement.\nThis field is set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.\nIf the `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in this\nfield will be able to see the announcement."
2017-09-13 12:09:48 +00:00
},
"creatorUserId": {
"description": "Identifier for the user that created the announcement.\n\nRead-only.",
"type": "string"
},
"state": {
2017-10-22 08:07:36 +00:00
"enum": [
"ANNOUNCEMENT_STATE_UNSPECIFIED",
2017-10-22 08:07:36 +00:00
"PUBLISHED",
"DRAFT",
"DELETED"
],
"description": "Status of this announcement.\nIf unspecified, the default state is `DRAFT`.",
"type": "string",
"enumDescriptions": [
"No state specified. This is never returned.",
"Status for announcement that has been published.\nThis is the default state.",
"Status for an announcement that is not yet published.\nAnnouncement in this state is visible only to course teachers and domain\nadministrators.",
"Status for announcement that was published but is now deleted.\nAnnouncement in this state is visible only to course teachers and domain\nadministrators.\nAnnouncement in this state is deleted after some time."
]
},
"text": {
"description": "Description of this announcement.\nThe text must be a valid UTF-8 string containing no more\nthan 30,000 characters.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"courseId": {
"description": "Identifier of the course.\n\nRead-only.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"id": {
"description": "Classroom-assigned identifier of this announcement, unique per course.\n\nRead-only.",
2017-09-13 12:09:48 +00:00
"type": "string"
},
2017-10-22 08:07:36 +00:00
"materials": {
"description": "Additional materials.\n\nAnnouncements must have no more than 20 material items.",
2017-10-22 08:07:36 +00:00
"type": "array",
"items": {
2017-10-22 08:07:36 +00:00
"$ref": "Material"
}
},
"updateTime": {
"description": "Timestamp of the most recent change to this announcement.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"assigneeMode": {
"enumDescriptions": [
"No mode specified. This is never returned.",
"All students can see the item.\nThis is the default state.",
"A subset of the students can see the item."
],
"enum": [
"ASSIGNEE_MODE_UNSPECIFIED",
"ALL_STUDENTS",
"INDIVIDUAL_STUDENTS"
],
"description": "Assignee mode of the announcement.\nIf unspecified, the default value is `ALL_STUDENTS`.",
"type": "string"
},
"alternateLink": {
"description": "Absolute link to this announcement in the Classroom web UI.\nThis is only populated if `state` is `PUBLISHED`.\n\nRead-only.",
"type": "string"
}
},
"id": "Announcement"
},
"ModifyIndividualStudentsOptions": {
"description": "Contains fields to add or remove students from a course work or announcement\nwhere the `assigneeMode` is set to `INDIVIDUAL_STUDENTS`.",
"type": "object",
"properties": {
"addStudentIds": {
"description": "Ids of students to be added as having access to this\ncoursework/announcement.",
"type": "array",
"items": {
"type": "string"
}
},
"removeStudentIds": {
"description": "Ids of students to be removed from having access to this\ncoursework/announcement.",
"type": "array",
"items": {
"type": "string"
}
}
},
"id": "ModifyIndividualStudentsOptions"
},
"DriveFolder": {
"description": "Representation of a Google Drive folder.",
"type": "object",
"properties": {
"id": {
"description": "Drive API resource ID.",
"type": "string"
},
"title": {
"description": "Title of the Drive folder.\n\nRead-only.",
"type": "string"
},
"alternateLink": {
"description": "URL that can be used to access the Drive folder.\n\nRead-only.",
"type": "string"
}
},
"id": "DriveFolder"
},
"SubmissionHistory": {
"description": "The history of the submission. This currently includes state and grade\nhistories.",
"type": "object",
"properties": {
"gradeHistory": {
"$ref": "GradeHistory",
"description": "The grade history information of the submission, if present."
},
"stateHistory": {
"description": "The state history information of the submission, if present.",
"$ref": "StateHistory"
}
},
"id": "SubmissionHistory"
},
"ShortAnswerSubmission": {
"type": "object",
"properties": {
"answer": {
"description": "Student response to a short-answer question.",
"type": "string"
}
},
"id": "ShortAnswerSubmission",
"description": "Student work for a short answer question."
},
"StudentSubmission": {
"id": "StudentSubmission",
"description": "Student submission for course work.\n\nStudentSubmission items are generated when a CourseWork item is created.\n\nStudentSubmissions that have never been accessed (i.e. with `state` = NEW)\nmay not have a creation time or update time.",
"type": "object",
"properties": {
"state": {
"enumDescriptions": [
"No state specified. This should never be returned.",
"The student has never accessed this submission. Attachments are not\nreturned and timestamps is not set.",
"Has been created.",
"Has been turned in to the teacher.",
"Has been returned to the student.",
"Student chose to \"unsubmit\" the assignment."
],
"enum": [
"SUBMISSION_STATE_UNSPECIFIED",
"NEW",
"CREATED",
"TURNED_IN",
"RETURNED",
"RECLAIMED_BY_STUDENT"
],
"description": "State of this submission.\n\nRead-only.",
"type": "string"
},
"userId": {
"description": "Identifier for the student that owns this submission.\n\nRead-only.",
"type": "string"
},
"courseWorkId": {
"description": "Identifier for the course work this corresponds to.\n\nRead-only.",
"type": "string"
},
"courseId": {
"description": "Identifier of the course.\n\nRead-only.",
"type": "string"
},
"id": {
"description": "Classroom-assigned Identifier for the student submission.\nThis is unique among submissions for the relevant course work.\n\nRead-only.",
"type": "string"
},
"submissionHistory": {
"description": "The history of the submission (includes state and grade histories).\n\nRead-only.",
"type": "array",
"items": {
"$ref": "SubmissionHistory"
}
},
"assignedGrade": {
"description": "Optional grade. If unset, no grade was set.\nThis value must be non-negative. Decimal (i.e. non-integer) values are\nallowed, but will be rounded to two decimal places.\n\nThis may be modified only by course teachers.",
"format": "double",
"type": "number"
},
"multipleChoiceSubmission": {
"description": "Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION.",
"$ref": "MultipleChoiceSubmission"
},
"assignmentSubmission": {
"$ref": "AssignmentSubmission",
"description": "Submission content when course_work_type is ASSIGNMENT.\n\nStudents can modify this content using\ngoogle.classroom.Work.ModifyAttachments."
},
"shortAnswerSubmission": {
"description": "Submission content when course_work_type is SHORT_ANSWER_QUESTION.",
"$ref": "ShortAnswerSubmission"
2017-10-22 08:07:36 +00:00
},
"associatedWithDeveloper": {
"description": "Whether this student submission is associated with the Developer Console\nproject making the request.\n\nSee google.classroom.Work.CreateCourseWork for more\ndetails.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"type": "boolean"
},
"updateTime": {
"description": "Last update time of this submission.\nThis may be unset if the student has not accessed this item.\n\nRead-only.",
2017-10-22 08:07:36 +00:00
"format": "google-datetime",
"type": "string"
},
"alternateLink": {
"description": "Absolute link to the submission in the Classroom web UI.\n\nRead-only.",
"type": "string"
},
"draftGrade": {
"description": "Optional pending grade. If unset, no grade was set.\nThis value must be non-negative. Decimal (i.e. non-integer) values are\nallowed, but will be rounded to two decimal places.\n\nThis is only visible to and modifiable by course teachers.",
"format": "double",
"type": "number"
},
"late": {
"type": "boolean",
"description": "Whether this submission is late.\n\nRead-only."
},
"courseWorkType": {
"description": "Type of course work this submission is for.\n\nRead-only.",
"type": "string",
"enumDescriptions": [
"No work type specified. This is never returned.",
"An assignment.",
"A short answer question.",
"A multiple-choice question."
],
"enum": [
"COURSE_WORK_TYPE_UNSPECIFIED",
"ASSIGNMENT",
"SHORT_ANSWER_QUESTION",
"MULTIPLE_CHOICE_QUESTION"
]
},
"creationTime": {
"description": "Creation time of this submission.\nThis may be unset if the student has not accessed this item.\n\nRead-only.",
"format": "google-datetime",
2017-10-22 08:07:36 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
}
}
2017-08-05 18:17:15 +00:00
},
"ListStudentSubmissionsResponse": {
"type": "object",
2017-08-05 18:17:15 +00:00
"properties": {
"nextPageToken": {
"type": "string",
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available."
2017-10-22 08:07:36 +00:00
},
"studentSubmissions": {
"description": "Student work that matches the request.",
2017-10-22 08:07:36 +00:00
"type": "array",
"items": {
"$ref": "StudentSubmission"
2017-10-22 08:07:36 +00:00
}
}
},
"id": "ListStudentSubmissionsResponse",
"description": "Response when listing student submissions."
},
"ModifyAttachmentsRequest": {
"description": "Request to modify the attachments of a student submission.",
"type": "object",
"properties": {
"addAttachments": {
"description": "Attachments to add.\nA student submission may not have more than 20 attachments.\n\nForm attachments are not supported.",
2017-10-22 08:07:36 +00:00
"type": "array",
"items": {
"$ref": "Attachment"
2017-10-22 08:07:36 +00:00
}
}
},
"id": "ModifyAttachmentsRequest"
},
"YouTubeVideo": {
"description": "YouTube video item.",
"type": "object",
"properties": {
"alternateLink": {
"description": "URL that can be used to view the YouTube video.\n\nRead-only.",
"type": "string"
},
"thumbnailUrl": {
"description": "URL of a thumbnail image of the YouTube video.\n\nRead-only.",
"type": "string"
},
2017-10-22 08:07:36 +00:00
"id": {
"description": "YouTube API resource ID.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"title": {
"type": "string",
"description": "Title of the YouTube video.\n\nRead-only."
}
},
"id": "YouTubeVideo"
},
"ListInvitationsResponse": {
"description": "Response when listing invitations.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"invitations": {
"description": "Invitations that match the list request.",
"type": "array",
"items": {
"$ref": "Invitation"
}
}
},
"id": "ListInvitationsResponse"
},
"CloudPubsubTopic": {
"type": "object",
"properties": {
"topicName": {
"description": "The `name` field of a Cloud Pub/Sub\n[Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).",
"type": "string"
}
},
"id": "CloudPubsubTopic",
"description": "A reference to a Cloud Pub/Sub topic.\n\nTo register for notifications, the owner of the topic must grant\n`classroom-notifications@system.gserviceaccount.com` the\n `projects.topics.publish` permission."
},
"GuardianInvitation": {
"type": "object",
"properties": {
"creationTime": {
"description": "The time that this invitation was created.\n\nRead-only.",
"format": "google-datetime",
"type": "string"
},
"invitationId": {
"description": "Unique identifier for this invitation.\n\nRead-only.",
"type": "string"
},
"studentId": {
"description": "ID of the student (in standard format)",
"type": "string"
},
"state": {
"description": "The state that this invitation is in.",
"type": "string",
"enumDescriptions": [
"Should never be returned.",
"The invitation is active and awaiting a response.",
"The invitation is no longer active. It may have been accepted, declined,\nwithdrawn or it may have expired."
],
"enum": [
"GUARDIAN_INVITATION_STATE_UNSPECIFIED",
"PENDING",
"COMPLETE"
]
},
"invitedEmailAddress": {
"description": "Email address that the invitation was sent to.\nThis field is only visible to domain administrators.",
"type": "string"
}
},
"id": "GuardianInvitation",
"description": "An invitation to become the guardian of a specified user, sent to a specified\nemail address."
},
"StateHistory": {
"description": "The history of each state this submission has been in.",
"type": "object",
"properties": {
"state": {
"enum": [
"STATE_UNSPECIFIED",
"CREATED",
"TURNED_IN",
"RETURNED",
"RECLAIMED_BY_STUDENT",
"STUDENT_EDITED_AFTER_TURN_IN"
],
"description": "The workflow pipeline stage.",
"type": "string",
"enumDescriptions": [
"No state specified. This should never be returned.",
"The Submission has been created.",
"The student has turned in an assigned document, which may or may not be\na template.",
"The teacher has returned the assigned document to the student.",
"The student turned in the assigned document, and then chose to\n\"unsubmit\" the assignment, giving the student control again as the\nowner.",
"The student edited their submission after turning it in. Currently,\nonly used by Questions, when the student edits their answer."
]
},
"stateTimestamp": {
"description": "When the submission entered this state.",
"format": "google-datetime",
"type": "string"
},
"actorUserId": {
"description": "The teacher or student who made the change",
"type": "string"
}
},
"id": "StateHistory"
},
"CourseMaterialSet": {
"description": "A set of materials that appears on the \"About\" page of the course.\nThese materials might include a syllabus, schedule, or other background\ninformation relating to the course as a whole.",
"type": "object",
"properties": {
"title": {
"description": "Title for this set.",
"type": "string"
},
"materials": {
"description": "Materials attached to this set.",
"type": "array",
"items": {
"$ref": "CourseMaterial"
}
}
},
"id": "CourseMaterialSet"
},
"ListTeachersResponse": {
"description": "Response when listing teachers.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "Token identifying the next page of results to return. If empty, no further\nresults are available.",
"type": "string"
},
"teachers": {
"description": "Teachers who match the list request.",
"type": "array",
"items": {
"$ref": "Teacher"
}
}
},
"id": "ListTeachersResponse"
},
"Link": {
"description": "URL item.",
"type": "object",
"properties": {
"thumbnailUrl": {
"description": "URL of a thumbnail image of the target URL.\n\nRead-only.",
"type": "string"
},
"url": {
"description": "URL to link to.\nThis must be a valid UTF-8 string containing between 1 and 2024 characters.",
"type": "string"
},
"title": {
"description": "Title of the target of the URL.\n\nRead-only.",
"type": "string"
}
},
"id": "Link"
2017-08-05 18:17:15 +00:00
}
},
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
2017-08-05 18:17:15 +00:00
},
2017-10-22 08:07:36 +00:00
"protocol": "rest",
2017-08-05 18:17:15 +00:00
"version": "v1",
"baseUrl": "https://classroom.googleapis.com/",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/classroom.courses.readonly": {
"description": "View your Google Classroom classes"
},
"https://www.googleapis.com/auth/classroom.announcements": {
"description": "View and manage announcements in Google Classroom"
},
"https://www.googleapis.com/auth/classroom.profile.photos": {
"description": "View the profile photos of people in your classes"
},
"https://www.googleapis.com/auth/classroom.rosters.readonly": {
"description": "View your Google Classroom class rosters"
},
"https://www.googleapis.com/auth/classroom.guardianlinks.students": {
"description": "View and manage guardians for students in your Google Classroom classes"
},
"https://www.googleapis.com/auth/classroom.announcements.readonly": {
"description": "View announcements in Google Classroom"
},
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly": {
"description": "View your course work and grades in Google Classroom"
},
"https://www.googleapis.com/auth/classroom.coursework.students.readonly": {
"description": "View course work and grades for students in the Google Classroom classes you teach or administer"
},
"https://www.googleapis.com/auth/classroom.coursework.students": {
"description": "Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer"
},
"https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly": {
"description": "View your Google Classroom guardians"
},
2017-10-22 08:07:36 +00:00
"https://www.googleapis.com/auth/classroom.coursework.me.readonly": {
"description": "View your course work and grades in Google Classroom"
},
"https://www.googleapis.com/auth/classroom.profile.emails": {
"description": "View the email addresses of people in your classes"
},
"https://www.googleapis.com/auth/classroom.coursework.me": {
"description": "Manage your course work and view your grades in Google Classroom"
},
2017-09-21 15:48:45 +00:00
"https://www.googleapis.com/auth/classroom.rosters": {
"description": "Manage your Google Classroom class rosters"
},
"https://www.googleapis.com/auth/classroom.push-notifications": {
"description": "Receive notifications about your Google Classroom data"
},
2017-09-21 15:48:45 +00:00
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly": {
"description": "View course work and grades for students in the Google Classroom classes you teach or administer"
},
"https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly": {
"description": "View guardians for students in your Google Classroom classes"
},
"https://www.googleapis.com/auth/classroom.courses": {
"description": "Manage your Google Classroom classes"
2017-08-05 18:17:15 +00:00
}
}
}
},
"kind": "discovery#restDescription",
"description": "Manages classes, rosters, and invitations in Google Classroom.",
"servicePath": "",
"rootUrl": "https://classroom.googleapis.com/",
"basePath": ""
2017-08-05 18:17:15 +00:00
}