Update Class

Update Class

The UpdateClass API updates the class records for the provided Class ID.

Request Parameters

Id Int (Required)

The targeted class Id.

CourseId Int (Required)

The class’s course identifier.

MinStudents Int (Required)

The minimum the number of students enrolled.

MaxStudents Int (Required)

The maximum number of students enrolled.

SessionTimes Array of ClassSession (Required)

Refer ClassSession for the class timings

Name string (Required)

The class name

ConfirmationStatusId Int (Optional)

Gives the class’s ConfirmationStatusId

0 = Scheduled

1 = GuaranteedToRun

2 = Cancelled

3 = Rescheduled

4 = Tentative

5 = Requested

6 = Denied

7 = Completed

PrimaryInstructorId Int (Optional)

The class primary instructor identifier

EnableEnrollmentNotifications Boolean (Optional)

Distinguishes if enrollment notifications are enabled

ClassSession DateTime (Required)

Start time of the class and End time of the class.

				
					{
  "CourseId": 57415,
  "Name": "Test course for center wise course testing 05Dec",
  "MinStudents": 1,
  "MaxStudents": 16,
  "ConfirmationStatusId": 1,
  "PrimaryInstructorId": 543,
  "EnableEnrollmentNotifications": false,
  "SessionTimes": [
    {
      "Start": "2023-02-09 11:01:01",
      "End": "2023-02-09 13:01:01"
    },
    {
      "Start": "2023-02-10 11:01:01",
      "End": "2023-02-10 13:01:01"
    },
    {
      "Start": "2023-02-11 11:01:01",
      "End": "2023-02-11 11:01:01"
    }
  ]
}
				
			

Response

(Nullable)
				
					{
  "success": true,
  "message": "Record updated successfully.",
  "data": null
}