Add a slot to a classroom

Required OAuth scope: classrooms:write.

Adds a slot to a given classroom.

Path Params
string
required

The unique ID of the classroom.

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

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

number
required

The reported duration of the slot, in hours.

selfRegistration
required

The self registration settings of the classroom slots.

boolean
required

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

number

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.

string
required
length ≥ 1

The title of the classroom slot.

context
object
required

The path session context of the classroom slot.

string
required
length ≥ 1

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

trainerIds
array of strings
length ≤ 20

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

trainerIds
mediaIds
array of strings
length ≤ 20

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

mediaIds
string
length ≥ 1

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

Headers
string
enum
required

The version of the API.

Allowed:
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json