POST ./conduita

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

If the parameter matID is present, the behavior is associated with that subject — but only if the current teacher (or co-teacher) actually teaches that subject to the student's class. The subject is then shown in the behavior record, in Wellbeing, and in push/email/web notifications ("You received a reward at [SUBJECT NAME]"). If matID is not present, the behavior is considered general (not tied to a subject) and the notification keeps the old format.

POST parameters

NameValue TypeValidationDetails
elevIDintRequiredStudent ID.
sanIDintRequiredSemester ID.
cmIDintOptionalPredefined reason ID.
cmeTipintOptionalBehavior type. It will not be used if parameter cmID is present.
cmeTextstringOptionalThe reason for the behavior. It will not be used if parameter cmID is present.
cmePunctajintOptionalThe score for the behavior. It will not be used if parameter cmID is present.
cmeDatarfc_dateRequiredDate.
matIDintOptionalSubject ID. Only accepted if the requesting teacher (or co-teacher) teaches this subject to the student's current class.

Validation

Error FieldError CodeError Message
cmID101Invalid cmID.
matID99Invalid matID.

Output example

{
"cmeID": 8065
}