POST /api/v1/programs/sessions/{programSessionId}/classrooms/{classroomId}/slots
Create a Classroom slot.
Query body
Property | Type | Required? | Description |
---|---|---|---|
name | string | Yes | Title of the slot. |
startDate | string | Yes | Start 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 . |
endDate | string | Yes | Start 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 . |
virtual | boolean | Yes | Set to true when the slot is a virtual Classroom; set to false when the slot is an on-site Classroom. |
location | string | Yes | Where the slot will take place (can be a URL for a virtual classroom). |
reportedDuration | integer | Yes | Reported duration of the slot, in hours. |
timezone | string | No | Time zone of the slot in the format Continent/Country (TZ database) — example: America/Indianapolis |
trainers | string[] | No | User IDs of trainers in charge of the slot (users must exist in the company). |
maxCapacity | integer | No | Maximum number of registrations allowed in the slot. Learners won't be able to self-enroll on this slot if this number is reached. |
message | string | No | Any additional message that should be shared with learners in the email notifications for this slot. |
Servers
- https://app.360learning.com
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
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.