Body
Request to update class
-
Season
-
Name
-
Day of week
Values are
monday,tuesday,wednesday,thursday,friday,saturday, orsunday. -
First lesson start date
-
last lesson end date
-
The course type
Values are
enrolmentordrop-in. -
Start time
-
Duration in minutes
-
Price
-
Description
-
Room
-
Staff
-
Min age in months
-
Max age in months
-
Capacity (set to 0 for unlimited)
-
Color
Values are
red,orange,yellow,lime,green,turquoise,sky,blue,purple,pink_purple,pink, orgrey. -
Settings
PATCH
/v1/courses/{id}
curl \
--request PATCH 'https://api-dev.classmanager.io/v1/courses/cls_xxxxxxxx' \
--header "Content-Type: application/json" \
--data '{"seasonId":"sea_123123123123","name":"Ballet","dayOfWeek":"monday","firstLessonStartDate":"09:00","lastLessonEndDate":"09:00","type":"enrolment","startTime":"09:00","durationInMinutes":60,"price":1000,"description":"string","roomId":"room_123123123123","staffId":"stf_123123123123","minAgeMonths":2,"maxAgeMonths":5,"capacity":20,"colorId":"red","settings":{"portalEnrolmentEnabled":true,"discountable":true,"trialsEnabled":false,"taxRateId":"tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"}}'
Request examples
{
"seasonId": "sea_123123123123",
"name": "Ballet",
"dayOfWeek": "monday",
"firstLessonStartDate": "09:00",
"lastLessonEndDate": "09:00",
"type": "enrolment",
"startTime": "09:00",
"durationInMinutes": 60,
"price": 1000,
"description": "string",
"roomId": "room_123123123123",
"staffId": "stf_123123123123",
"minAgeMonths": 2,
"maxAgeMonths": 5,
"capacity": 20,
"colorId": "red",
"settings": {
"portalEnrolmentEnabled": true,
"discountable": true,
"trialsEnabled": false,
"taxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
Response examples (200)
{
"aggregateId": "cls_xxxxxxxxxxx",
"entity": {
"id": "cls_123123123123",
"companyId": "co_123123123123",
"seasonId": "sea_123123123123",
"seasonName": "Winter 2024",
"firstLessonStartDate": "2023-12-05",
"lastLessonEndDate": "2023-12-05",
"name": "All That Jazz",
"type": "enrolment",
"is_recurring": true,
"dayOfWeek": "monday",
"startTime": "10:00",
"durationInMinutes": 60,
"price": 50,
"image": "https://",
"description": "Description",
"roomId": "rm_123123123123",
"staffId": "stf_123123",
"minAgeMonths": 2,
"maxAgeMonths": 5,
"capacity": 20,
"colorId": "red",
"archivedAt": "2023-12-05 14:30:41",
"deletedAt": "2023-12-05 14:30:41"
},
"settings": {
"id": "clstn_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"classId": "cls_xxxxxxxxxxxxxxxx",
"portalEnrolmentEnabled": true,
"discountable": true,
"trialsEnabled": false,
"taxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"stats": {
"classId": "cls_xxxxxxxxx",
"enrolments": {
"currentCount": 10,
"upcomingCount": 2,
"pastCount": 4
},
"waitingLists": {
"totalCount": 4
},
"trials": {
"totalCount": 10,
"upcomingCount": 10
}
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}