Creates a topic

gc_courses_topics_create(Topic, courseId)

Arguments

Topic

The gc_topic object to pass to this method

courseId

Identifier of the course

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to access therequested course, create a topic in the requested course,or for access errors.

  • INVALID_ARGUMENT if the request is malformed.

  • NOT_FOUND if the requested course does not exist.

Authentication scopes used by this function are:

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

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

See also