---
title: "Edit a classroom"
method: PATCH
path: "/api/v2/classrooms/{classroomId}"
tags: ["Classrooms"]
---

# Edit a classroom

`PATCH /api/v2/classrooms/{classroomId}`

> 🔑
>
> Required OAuth scope: `classrooms:write`.

Edits specific fields of an existing classroom. Fields not included in the request payload remain unchanged.

## Path parameters

- `classroomId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Request body

- PatchClassroomDTO
  - `name` string — The title of the classroom.
  - `mediaIds` string[] — The list of unique IDs of the medias assigned to this classroom. These attachments will be sent by email to registered learners.
  - `message` string, nullable — Complementary information about the classroom. This information will be sent by email to registered learners.
  - `trainingObjective` string, nullable — The training objective of the classroom.

## Response `200`

Returns the updated classroom.

- ClassroomDTO
  - `groupId` string, ObjectId, required — The unique ID of the creation group of the classroom.
  - `_id` string, ObjectId, required — The unique ID of the classroom.
  - `createdAt` string, date-time — The date at which the classroom was created, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `name` string, required — The title of the classroom.
  - `mediaIds` string[], required — The list of unique IDs of the medias assigned to this classroom. These attachments will be sent by email to registered learners.
  - `message` string — Complementary information about the classroom. This information will be sent by email to registered learners.
  - `modifiedAt` string, date-time — The date at which the classroom was last modified, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC)).
  - `trainingObjective` string — The training objective of the classroom.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The server cannot find the requested resource.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.net/360learning/apis/core-api.md) · [All operations](https://skmtc.net/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
