PUT ./materii

Used to update a school subject.

PUT parameters

NameValue TypeValidationDetails
matIDintrequiredSubject ID .
matNumestringrequiredSubject name.
matPrescurtarestringrequiredSubject short name.
matOptScutirebooloptionalStudents may be exempt.
matOptbooloptionalSubject is optional.
matRapoarteElevibooloptionalAllows student reports.
matRoomsIdsarrayoptionalRooms Ids

Validation

Error FieldError CodeError Message
matID20The field must contain a number greater than zero
matNume8The field can not exceed 100 characters in length.
matNume101The field must contain a unique value
matPrescurtare8The field can not exceed 50 characters in length.
matRoomsIds102Invalid room id

Output example

{
"result": true
}