Skip to main content
POST
/
method
/
edtools_core.api.apply_leave
Aplicar Permiso (Leave)
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"
}
'

Authorizations

Authorization
string
header
required

Body

application/json

leave_data
LeaveData · object
required
Example:
{
"student": "EDU-STU-2025-02904",
"student_name": "Juan Pérez",
"from_date": "2025-01-20",
"to_date": "2025-01-22"
}
program_name
string
required

Response

200

Respuesta exitosa del servidor.