POST ./avertismente

It is used to add a warning to a user.

POST parameters

NameValue TypeValidationDetails
elevIDintRequiredStudent ID.
ascIDintRequiredStudy year ID.
avtDataintRequiredWarning date; rfc_date;
avtNumarintRequiredWarning number.
avtMotivstringRequiredReason for warning.

Validation

Error FieldError CodeError Message
elevID101Invalid elevID.
elevID103Student not asigned to ascID.
ascID101Invalid ascID.
ascID102ascID not active.
avtData101avtData not in asc date range.
avtData102avtZileStergere exceded (check variable avtZileStergere from config table ).

Output example

{
"avtID": 53
}