Creates a topic
gc_courses_topics_create(Topic, courseId)
Topic | The gc_topic object to pass to this method |
---|---|
courseId | Identifier of the course |
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.
Other Topic functions:
gc_courses_topics_patch()
,
gc_topic()