PUT ./administratori

It is used to edit information for an administrator with the following specifications:

  • parameters admTelChID and admTelChResponse will become mandatory if admTel is present in the request and it is not empty. It can be retrieved from POST ./auth/challenge_phone with the intent edit.
  • parameters admEmailChID and admEmailChResponse will became mandatory if admEmail is present in the request and it is not empty. It can be retrieved from POST ./auth/challenge_email** with the intent edit.

PUT parameters

NameValue TypeValidationDetails
admIDintRequiredAdministrator ID
admSexintOptional; values[1,2]Values[1,2] 1=male, 2=female.
admDataNasteriistringOptional; rfc_dateDate of birth
admNumestringOptionalFirst name.
admPrenumestringOptionalLast name
admTelstringOptional; valid_phonePhone
admTelChIDstringRequiredChallenge ID ID-ul challenge-ului.?????
admTelChResponsestringRequiredChallenge response.
admEmailstringOptionalEmail
admEmailChIDstringRequiredID-ul challenge-ului.???
admEmailChResponsestringRequiredRaspunsul challenge-ului.???

Validation

Error FieldError CodeError Message
admTel27The field must contain a valid phone number. (+4012345789)
admTelChID101Challenge failed. incorect admTelChID or admTelChResponse.
admEmail3The field must contain a valid email address.
admEmailChID102Challenge failed. incorect admEmailChID or admEmailChResponse.
admDataNasterii24The field must contain a valid date. Ex: 2018-06-22

Output example

{
"result": true
}