PUT ./elevi

It is used to modify the details for a student with the following:

  • The parameters elevSex, elevDataNasterii, elTel, elEmail can be modified by student too.
  • The parameters elevSex, elevDataNasterii can be modified also by parent, if the student is in kindergarten or on primary school.
  • The parameters elTelChID, elTelChResponse will become mandatory if the parameter elTel is present in the request and it's not empty. It can be obtain from obtain from POST ./auth/challenge_phone with the intent edit.
  • The parameters elEmailChID, elEmailChResponse will become mandatory if the parameter elEmail is present in the request and it's not empty. It can be obtain from obtain from POST ./auth/challenge_email with the intent edit.

PUT parameters

NameValue TypeValidationDetails
elevIDintRequiredStudent ID.
elevSexintRequiredValues[1,2]; 1=male, 2=female.
elevDataNasteriistringOptionalrfc_date; Date of birth.
elTelstringOptionalStudent phone number.
elTelChIDstringRequiredPhone challenge ID.
elTelChResponsestringRequiredPhone challenge response.
elEmailstringOptionalStudent email.
elEmailChIDstringRequiredEmail challenge ID.
elEmailChResponsestringRequiredEmail challenge response.

Validation

Error FieldError CodeError Message
elTelChID101Challenge failed. Incorrecy elTelChID or elTelChResponse.
elEmailChID102Challenge failed. Incorrect elEmailChID or elEmailChResponse.

Output example

{
"result": true
}