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
Name
Value Type
Validation
Details
admID
int
Required
Administrator ID
admSex
int
Optional; values[1,2]
Values[1,2] 1=male, 2=female.
admDataNasterii
string
Optional; rfc_date
Date of birth
admNume
string
Optional
First name.
admPrenume
string
Optional
Last name
admTel
string
Optional; valid_phone
Phone
admTelChID
string
Required
Challenge ID ID-ul challenge-ului.
?????
admTelChResponse
string
Required
Challenge response.
admEmail
string
Optional
Email
admEmailChID
string
Required
ID-ul challenge-ului.
???
admEmailChResponse
string
Required
Raspunsul challenge-ului.
???
Validation
Error Field
Error Code
Error Message
admTel
27
The field must contain a valid phone number. (+4012345789)
admTelChID
101
Challenge failed. incorect admTelChID or admTelChResponse.
admEmail
3
The field must contain a valid email address.
admEmailChID
102
Challenge failed. incorect admEmailChID or admEmailChResponse.
admDataNasterii
24
The field must contain a valid date. Ex: 2018-06-22