Step 5: Scheduling Live Sessions in a Batch

To schedule live sessions you can use the POST /teacher/classes/{{class_id}}/sessions API (documentation here)

  • In the API request body, you would need to provide the teacher's userId for whom you want to schedule these sessions

  • The request body of this API can take single as well as multiple sessions as shown below.

    {
        "userId":"{teacher_id}",
        "title":"Live session",
        "sessions":[
          {
            "type":"SINGLE",
            "scheduledStartTime":"2022-03-11T06:00:00.000Z",
            "scheduledEndTime":"2022-03-11T06:30:00.000Z"
          }, 
          {
            "type":"SINGLE",
            "scheduledStartTime":"2022-03-11T06:00:00.000Z",
            "scheduledEndTime":"2022-03-11T06:30:00.000Z"
          }, 
          ....
        ]
    }
  • The response of this API will return single or multiple sessionIds one for each scheduled session

Last updated