---
updatedAt: 2026-05-27T00:16:27.000Z
agentTools:
  projectIndex: https://360learning.readme.io/llms.txt
---

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

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/api/v2/classrooms/{classroomId}/slots/{classroomSlotId}": {
      "patch": {
        "description": "> 🔑\n>\n> Required OAuth scope: `classrooms:write`.\n\nEdits specific fields of an existing classroom slot. Fields not included in the request payload remain unchanged.",
        "operationId": "v2.classrooms.UpdateClassroomSlotController_updateClassroomSlot",
        "parameters": [
          {
            "name": "360-api-version",
            "in": "header",
            "description": "The version of the API.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v2.0"
              ]
            }
          },
          {
            "name": "classroomId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the classroom.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          },
          {
            "name": "classroomSlotId",
            "required": true,
            "in": "path",
            "description": "The unique ID of the classroom slot.",
            "schema": {
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$",
              "example": "507f1f77bcf86cd799439011",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchClassroomSlotDTO"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updates a specific classroom slot given its unique ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathClassroomSlotDTO"
                }
              }
            }
          },
          "400": {
            "description": "The server cannot or will not process the request due to something that is perceived to be a client error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The given classroom slot is linked to a webinar integration which is already started.",
                      "title": "Already Started Webinar",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "alreadyStartedWebinar"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The location of a classroom slot linked to a webinar integration cannot be modified.",
                      "title": "Cannot Update Location For Webinar",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "cannotUpdateLocationForWebinar"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "Classroom slot waitlist feature is not active for your company.",
                      "title": "Classroom Slot Waitlist Not Active",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "classroomSlotWaitlistNotActive"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The maximum capacity must be set and greater than 0 in order to activate the waitlist.",
                      "title": "Classroom Slot Waitlist Not Allowed",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "classroomSlotWaitlistNotAllowed"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "Hide attendees feature is not active for your company.",
                      "title": "Hide Attendees Not Active",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "hideAttendeesNotActive"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The `hideAttendees` field can only be set when an Outlook calendar integration is enabled for the classroom's group.",
                      "title": "Hide Attendees Requires Outlook Calendar",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "hideAttendeesRequiresOutlookCalendar"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `endDate` is before the given `startDate`.",
                      "title": "Invalid Start Or End Date",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "invalidStartOrEndDate"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The classroom dates are out of the parent path session dates.",
                      "title": "Out Of Path Session Dates",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "outOfPathSessionDates"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The given access token is either missing, invalid, has expired, or has been revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "The given access token does not have the required OAuth scope to execute the request.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Invalid Scope",
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "invalid_scope"
                          ]
                        },
                        "message": {
                          "type": "string",
                          "example": "A human-readable message to help with debugging."
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The server cannot find the requested resource.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "description": "The given `classroomId` does not correspond to any existing classroom.",
                      "title": "Classroom Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "classroomNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `classroomSlotId` does not correspond to any existing classroom slot.",
                      "title": "Classroom Slot Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "classroomSlotNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "The given `context._id` does not correspond to any existing path session.",
                      "title": "Path Session Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "pathSessionNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    },
                    {
                      "description": "At least one of the given `trainerIds` does not correspond to any existing and non-deleted user.",
                      "title": "Users Not Found",
                      "type": "object",
                      "properties": {
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": "string",
                              "enum": [
                                "usersNotFound"
                              ]
                            },
                            "message": {
                              "type": "string",
                              "example": "A human-readable message to help with debugging."
                            }
                          },
                          "required": [
                            "code",
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "error"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "The client has sent too many requests in a short amount of time. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "enum": [
                        "tooManyRequests"
                      ]
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ],
        "summary": "Edit a classroom slot",
        "tags": [
          "Classrooms"
        ]
      }
    }
  },
  "info": {
    "title": "Core API",
    "description": "",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://app.360learning.com",
      "description": "Production EU"
    },
    {
      "url": "https://app.us.360learning.com",
      "description": "Production US"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v2/oauth2/token",
            "scopes": {}
          }
        },
        "description": "Use the token from the authentication endpoint in the Authorization header.\n\nExample: `Authorization: Bearer <token>`"
      }
    },
    "schemas": {
      "DisabledSelfRegistrationDTO": {
        "title": "Disabled Self Registration",
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "True if self-registration enabled for this classroom slot, false otherwise."
          },
          "cutoffDate": {
            "format": "date-time",
            "type": "string",
            "description": "The cutoff date for self-registrations (only if `selfRegistration.enabled: true`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          }
        },
        "required": [
          "enabled"
        ]
      },
      "EnabledSelfRegistrationDTO": {
        "title": "Enabled Self Registration",
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "True if self-registration enabled for this classroom slot, false otherwise."
          },
          "cutoffDate": {
            "format": "date-time",
            "type": "string",
            "description": "The cutoff date for self-registrations (only if `selfRegistration.enabled: true`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          }
        },
        "required": [
          "enabled",
          "cutoffDate"
        ]
      },
      "PathContextDTO": {
        "title": "Path Context",
        "type": "object",
        "properties": {
          "_id": {
            "type": "string",
            "description": "The unique identifier of the entity the classroom slot was created in. For instance the path session ID.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "type": {
            "type": "string",
            "enum": [
              "path"
            ]
          }
        },
        "required": [
          "_id",
          "type"
        ]
      },
      "PathClassroomSlotDTO": {
        "title": "Path Classroom Slot",
        "type": "object",
        "properties": {
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot starts (must be before `endDate`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "endDate": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot ends (must be after `startDate`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "reportedDuration": {
            "type": "number",
            "description": "The reported duration of the slot, in hours.",
            "example": 1
          },
          "selfRegistration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DisabledSelfRegistrationDTO"
              },
              {
                "$ref": "#/components/schemas/EnabledSelfRegistrationDTO"
              }
            ],
            "description": "The self registration settings of the classroom slots."
          },
          "virtual": {
            "type": "boolean",
            "description": "True when the slot is a virtual classroom, false otherwise."
          },
          "maxCapacity": {
            "type": "number",
            "description": "The maximum number of registrations allowed in the slot. Learners won't be able to self-enroll on this slot if this number is reached.",
            "example": 10
          },
          "_id": {
            "type": "string",
            "description": "The unique ID of the classroom slot.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "classroomId": {
            "type": "string",
            "description": "The unique ID of the classroom the slot is linked to.",
            "format": "ObjectId",
            "example": "507f1f77bcf86cd799439011",
            "pattern": "^[a-fA-F0-9]{24}$"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot has been created, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "name": {
            "type": "string",
            "description": "The title of the classroom slot.",
            "example": "My awesome classroom slot"
          },
          "location": {
            "type": "string",
            "description": "The location of the classroom slot, being either a URL or a physical address.",
            "example": "https://meet.google.com/kdf-zkfz-hje"
          },
          "trainerIds": {
            "description": "The list of unique user IDs of trainers in charge of the slot (users must exist in the company).",
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          },
          "mediaIds": {
            "description": "The list of medias unique identifiers linked to the classroom slot.",
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          },
          "modifiedAt": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot has been updated, in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "timezone": {
            "type": "string",
            "description": "The timezone of the slot in the format `Continent[/Country]/City` defined by [TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).",
            "example": "Europe/Paris"
          },
          "webinarProvider": {
            "type": "string",
            "description": "If the classroom is setup through a webinar integration, contains the name of the integration.",
            "example": "Microsoft Teams"
          },
          "hideAttendees": {
            "type": "boolean",
            "description": "Whether the list of attendees is hidden in the calendar event."
          },
          "context": {
            "description": "The path session context of the classroom slot.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PathContextDTO"
              }
            ]
          }
        },
        "required": [
          "startDate",
          "endDate",
          "reportedDuration",
          "selfRegistration",
          "virtual",
          "_id",
          "classroomId",
          "name",
          "location",
          "trainerIds",
          "mediaIds",
          "context"
        ]
      },
      "NotificationDTO": {
        "title": "Notification",
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "True to send an update notification by email to registered learners, false otherwise."
          },
          "message": {
            "type": "string",
            "description": "The message to include in the notification email, has no effect if `notification.enabled:false`.",
            "minLength": 1
          }
        }
      },
      "PatchClassroomSlotDTO": {
        "title": "Patch Classroom Slot",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The title of the classroom slot.",
            "example": "My awesome classroom slot",
            "minLength": 1
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot starts (must be before `endDate`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "endDate": {
            "format": "date-time",
            "type": "string",
            "description": "The date and time when the classroom slot ends (must be after `startDate`), in the `YYYY-MM-DDThh:mm:ss.sssZ` format (ISO 8601 in Coordinated Universal Time (UTC))."
          },
          "location": {
            "type": "string",
            "description": "The location of the classroom slot, being either a URL or a physical address.",
            "example": "https://meet.google.com/kdf-zkfz-hje",
            "minLength": 1
          },
          "maxCapacity": {
            "type": "number",
            "description": "The maximum number of registrations allowed in the slot. Learners won't be able to self-enroll on this slot if this number is reached.",
            "example": 10
          },
          "notification": {
            "description": "The notification configuration.",
            "allOf": [
              {
                "$ref": "#/components/schemas/NotificationDTO"
              }
            ]
          },
          "reportedDuration": {
            "type": "number",
            "description": "The reported duration of the slot, in hours.",
            "example": 1
          },
          "trainerIds": {
            "maxItems": 20,
            "description": "The list of unique user IDs of trainers in charge of the slot (users must exist in the company).",
            "example": [
              "507f1f77bcf86cd799439011"
            ],
            "type": "array",
            "items": {
              "type": "string",
              "format": "ObjectId",
              "pattern": "^[a-fA-F0-9]{24}$"
            }
          },
          "timezone": {
            "type": "string",
            "description": "The timezone of the slot in the format `Continent[/Country]/City` defined by [TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).",
            "example": "Europe/Paris",
            "minLength": 1
          },
          "virtual": {
            "type": "boolean",
            "description": "True when the slot is a virtual classroom, false otherwise."
          },
          "withWaitlist": {
            "type": "boolean",
            "description": "Activate or deactivate the waitlist for the slot."
          },
          "hideAttendees": {
            "type": "boolean",
            "description": "Hide the list of attendees in the calendar event. Only available when an Outlook calendar integration is enabled for the classroom's group."
          }
        }
      }
    }
  },
  "x-readme": {
    "apply-tag-changes": true
  }
}
```