own:course. A teacher submits a request for either a rombel×mapel (class-subject) that has no live course yet, or an admin-created open custom class. The course is created with status REQUESTED, the requesting teacher becomes the owner, and it awaits admin approval. Exactly one of classSubjectId or courseId must be provided (enforced server-side). Returns 409 if a live course for that class-subject already exists.core.session_token: ********************Authorization: Bearer ********************curl --location '/courses' \
--header 'Content-Type: application/json' \
--data '{
"classSubjectId": "string",
"courseId": "string",
"requestNote": "string"
}'{
"success": true,
"message": "string",
"meta": {
"page": 0,
"limit": 0,
"total": 0
},
"errors": [
{
"code": "CR-100001",
"field": "string",
"message": "string"
}
],
"result": {
"id": "string",
"title": "string",
"description": "string",
"status": "REQUESTED",
"coverImage": "string",
"grade": 0,
"academicYear": "string",
"subject": {
"id": "string",
"name": "string",
"code": "string"
},
"class": {
"id": "string",
"name": "string",
"grade": 0,
"academicYear": "string"
},
"owner": {
"id": "string",
"name": "string",
"image": "string"
},
"isOwned": true,
"isCoTeacher": true,
"counts": {
"students": 0,
"materials": 0,
"quizzes": 0,
"assignments": 0
},
"myProgress": {
"completed": 0,
"total": 0
},
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"archivedAt": "2019-08-24T14:15:22.123Z",
"requestNote": "string",
"rejectionReason": "string",
"reviewedAt": "2019-08-24T14:15:22.123Z",
"teachers": [
{
"teacherId": "string",
"name": "string",
"email": "string",
"image": "string",
"isOwner": true,
"addedAt": "2019-08-24T14:15:22.123Z"
}
]
}
}