POST ./conduita/elev
It is used to add the behavior for a student.
If the parameter cmID is present cmeTip, cmeText,cmePunctaj will be taken from the predefined reason and they should not be used in the POST method.
If the parameter cmID is not present cmeTip, cmeText will become mandatory. If cmeTip has a score cmePunctaj will become mandatory too.
Parameter cmeTip will have the follwing values:
- 1 = reward
- 2 = deviation
- 3 = remark
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| elevID | int | Required | Student ID. |
| sanID | int | Required | Semester ID. |
| cmID | int | Optional | Predefined reason ID. |
| cmeTip | int | Optional | Behavior type. It will not be used if parameter cmID is present. |
| cmeText | string | Optional | The reason for the behavior. It will not be used if parameter cmID is present. |
| cmePunctaj | int | Optional | The score for the behavior. It will not be used if parameter cmID is present. |
| cmeData | rfc_date | Required | Date. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| cmID | 101 | Invalid cmID. |
Output example
{"cmeID": 8065}
