POST /api/v1/programs/sessions/{programSessionId}/classrooms/{classroomId}/slots

Create a Classroom slot.

Query body

PropertyTypeRequired?Description
namestringYesTitle of the slot.
startDatestringYesStart date of the slot. It must be before the end date of the slot, and between the start and end dates of the program session. Expressed in ISO 8601 — example: 2022-05-16T22:00:00.000Z.
endDatestringYesStart date of the slot. Must be after the start date of the slot, and between the start and end dates of the program session. Expressed in ISO 8601 — example: 2022-05-16T22:00:00.000Z.
virtualbooleanYesSet to true when the slot is a virtual Classroom; set to false when the slot is an on-site Classroom.
locationstringYesWhere the slot will take place (can be a URL for a virtual classroom).
reportedDurationintegerYesReported duration of the slot, in hours.
timezonestringNoTime zone of the slot in the format Continent/Country (TZ database) — example: America/Indianapolis
trainersstring[]NoUser IDs of trainers in charge of the slot (users must exist in the company).
maxCapacityintegerNoMaximum number of registrations allowed in the slot. Learners won't be able to self-enroll on this slot if this number is reached.
messagestringNoAny additional message that should be shared with learners in the email notifications for this slot.

Servers

Path parameters

Name Type Required Description
classroomId String Yes

ID of the classroom (not the slot).

programSessionId String Yes

ID of the program session.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
company String No

(Optional) Include the company ID to authenticate calls via the API key as query parameter. For more information on the authentication methods supported by our API, see Authentication Methods.

apiKey String No

(Optional) Include the API key to authenticate calls via the API key as query parameter. For more information on the authentication methods supported by our API, see Authentication Methods.

Request body fields

Name Type Required Description
endDate String No
reportedDuration Number No
name String No
maxCapacity Number No
location String No
message String No
virtual Boolean No
startDate String No
trainers[] Array No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.