---
title: "POST /v1/courses/{courseId}/studentGroups"
method: POST
path: "/v1/courses/{courseId}/studentGroups"
tags: ["courses"]
---

# POST /v1/courses/{courseId}/studentGroups

`POST /v1/courses/{courseId}/studentGroups`

Creates a student group for a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create the student group or for access errors. * `NOT_FOUND` if the course does not exist or the requesting user doesn't have access to the course. * `FAILED_PRECONDITION` if creating the student group would exceed the maximum number of student groups per course.

## Path parameters

- `courseId` string, required

## Request body

- StudentGroup — A student group in a course.
  - `title` string — The title of the student group.
  - `courseId` string — The identifier of the course.
  - `id` string — The identifier of the student group.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/classroom.md) · [All operations](https://skmtc.net/google/apis/classroom/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/classroom/versions/1b98f151d40b/schema)
