v1
latestOpenAPI 3.1.02026-08-04164270844.7 KBClassrooms
Edit a classroom slot
🔑
Required OAuth scope: classrooms:write.
Edits specific fields of an existing classroom slot. Fields not included in the request payload remain unchanged.
patch/api/v2/classrooms/{classroomId}/slots/{classroomSlotId}
Path parameters
classroomIdstring ObjectId required
Example:507f1f77bcf86cd799439011
The unique ID of the classroom.
classroomSlotIdstring ObjectId required
Example:507f1f77bcf86cd799439011
The unique ID of the classroom slot.
Headers
360-api-version'v2.0' required
The version of the API.
Request body
Example request
{
"name": "My awesome classroom slot",
"location": "https://meet.google.com/kdf-zkfz-hje",
"maxCapacity": 10,
"reportedDuration": 1,
"trainerIds": [
"507f1f77bcf86cd799439011"
],
"timezone": "Europe/Paris"
}Response
Updates a specific classroom slot given its unique ID.
Example response
{
"reportedDuration": 1,
"maxCapacity": 10,
"_id": "507f1f77bcf86cd799439011",
"classroomId": "507f1f77bcf86cd799439011",
"name": "My awesome classroom slot",
"location": "https://meet.google.com/kdf-zkfz-hje",
"trainerIds": [
"507f1f77bcf86cd799439011"
],
"mediaIds": [
"507f1f77bcf86cd799439011"
],
"timezone": "Europe/Paris",
"webinarProvider": "Microsoft Teams",
"context": {
"_id": "507f1f77bcf86cd799439011"
}
}