Get

Returns a topic

2 variables
4 variables

Returns a topic.

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to access the requested course or topic, or for access errors.
  • INVALID_ARGUMENT if the request is malformed.
  • NOT_FOUND if the requested course or topic does not exist

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • See, create, and edit topics in Google Classroom
  • View topics in Google Classroom

Input

This building block consumes 2 input parameters

  = Parameter name
  = Format

courseId STRING Required

Identifier of the course

id STRING Required

Identifier of the topic

Output

This building block provides 4 output parameters

  = Parameter name
  = Format

name STRING

The name of the topic, generated by the user. Leading and trailing whitespaces, if any, will be trimmed. Also, multiple consecutive whitespaces will be collapsed into one inside the name. The result must be a non-empty string. Topic names are case sensitive, and must be no longer than 100 characters

topicId STRING

Unique identifier for the topic.

Read-only

courseId STRING

Identifier of the course.

Read-only

updateTime ANY

The time the topic was last updated by the system.

Read-only