Classrooms

Edit a classroom slot

Changed on

🔑

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}

Request

  • Base URL
    https://app.360learning.com
  • URL
    https://app.360learning.com/api/v2/classrooms/{classroomId}/slots/{classroomSlotId}
  • Auth
    OAuth 2
    Client credentials
    Token URL: /api/v2/oauth2/token

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

namestring

The title of the classroom slot.

startDatestring date-time

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

endDatestring date-time

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

locationstring

The location of the classroom slot, being either a URL or a physical address.

maxCapacitynumber

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.

reportedDurationnumber

The reported duration of the slot, in hours.

trainerIdsstring[]

The list of unique user IDs of trainers in charge of the slot (users must exist in the company).

timezonestring

The timezone of the slot in the format Continent[/Country]/City defined by TZ database.

virtualboolean

True when the slot is a virtual classroom, false otherwise.

withWaitlistboolean

Activate or deactivate the waitlist for the slot.

hideAttendeesboolean

Hide the list of attendees in the calendar event. Only available when an Outlook calendar integration is enabled for the classroom's group.

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.

startDatestring date-time required

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

endDatestring date-time required

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

reportedDurationnumber required

The reported duration of the slot, in hours.

virtualboolean required

True when the slot is a virtual classroom, false otherwise.

maxCapacitynumber

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.

_idstring ObjectId required

The unique ID of the classroom slot.

classroomIdstring ObjectId required

The unique ID of the classroom the slot is linked to.

createdAtstring date-time

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

namestring required

The title of the classroom slot.

locationstring required

The location of the classroom slot, being either a URL or a physical address.

trainerIdsstring[] required

The list of unique user IDs of trainers in charge of the slot (users must exist in the company).

mediaIdsstring[] required

The list of medias unique identifiers linked to the classroom slot.

modifiedAtstring date-time

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

timezonestring

The timezone of the slot in the format Continent[/Country]/City defined by TZ database.

webinarProviderstring

If the classroom is setup through a webinar integration, contains the name of the integration.

hideAttendeesboolean

Whether the list of attendees is hidden in the calendar event.

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"
  }
}

Changes

    • breaking

      added subschema #3: Classroom Slot Waitlist Not Active subschema #4: Classroom Slot Waitlist Not Allowed subschema #5: Hide Attendees Not Active subschema #6: Hide Attendees Requires Outlook Calendar to the response body oneOf list for the response status

    • breaking

      added subschema #4: Users Not Found to the response body oneOf list for the response status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      removed subschema #5: Users Not Found from the response body oneOf list for the response status

    • info

      added the optional property to the response with the status