curl --request POST \
--url https://cucuniversity.edtools.co/api/method/education.education.doctype.course.course.add_course_to_programs \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"course": "Introduction to Programming",
"programs": [
"Computer Science",
"Software Engineering"
],
"mandatory": false
}
'