Method: courses.create

Creates a course.

The user specified in ownerId is the owner of the created course and added as a teacher.

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to create courses or for access errors.
  • NOT_FOUND if the primary teacher is not a valid user.
  • FAILED_PRECONDITION if the course owner's account is disabled or for the following request errors:
    • UserGroupsMembershipLimitReached
  • ALREADY_EXISTS if an alias was specified in the id and already exists.

HTTP request

POST https://classroom.googleapis.com/v1/courses

The URL uses Google API HTTP annotation syntax.

Request body

The request body contains an instance of Course.

Response body

If successful, the response body contains a newly created instance of Course.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

Try it!

Send feedback about...

Classroom API
Classroom API
Need help? Visit our support page.