curl --request POST \
--url https://cucuniversity.edtools.co/api/method/edtools_core.api.apply_leave \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"leave_data": {
"student": "EDU-STU-2025-02904",
"student_name": "Juan Pérez",
"from_date": "2025-01-20",
"to_date": "2025-01-22"
},
"program_name": "Computer Science"
}
'