Returns whether a user is eligible to create add-on attachments in a given course.
This method is deprecated. Use
instead.UserProfiles.checkUserCapability
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or for access errors.INVALID_ARGUMENT
if the request is malformed.NOT_FOUND
if the requested course does not exist.
HTTP request
GET https://classroom.googleapis.com/v1/courses/{courseId}:checkAddOnCreationEligibility
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
course |
Required. Identifier of the course. |
Request body
The request body must be empty.
Response body
Whether a teacher user is allowed to create add-on attachments for a given course.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "courseId": string, "isCreateAttachmentEligible": boolean } |
Fields | |
---|---|
course |
Immutable. Identifier of the course. |
is |
Whether the teacher is allowed to create add-on attachments in this course. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/classroom.addons.teacher
For more information, see the Authorization guide.