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

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

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

Creates a student group member for a student group. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create the student group or member for access errors. * `NOT_FOUND` if the student group does not exist or the user does not have access to the student group. * `ALREADY_EXISTS` if the student group member already exists. * `FAILED_PRECONDITION` if attempting to add a member to a student group that has reached its member limit.

## Path parameters

- `courseId` string, required
- `studentGroupId` string, required

## Request body

- StudentGroupMember — A student member in a student group.
  - `studentGroupId` string — The identifier of the student group.
  - `userId` string — Identifier of the student.
  - `courseId` string — The identifier of the course.

## 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)
