/update_subject_name.php POST

This endpoint will update the subject name

Request

Parameter Type Description
sub_id number this is the id of the subject.
sub_name string this is the name of the subject to be updated.
stud_id number this is the id of the user.
pass string this is the user's password.

Response Success

{
   "code":202,
   "response":"success"
}

Response Auth Error

{
   "code":351,
   "msg":"User is unauthorized"
}

Response Param Error

{
   "code":-9999,
   "response":"Parameter Error"
}