PUT ./cadre/:cadID (Teacher ID)

It is used to modify the information for a teacher with the following specifications:

  • Parameters cadTelChID and cadTelefonChResponse become mandatory if parameter cadTelefon is present and it is not empty. We can get the parameter from POST ./auth/challenge_phone with the intent edit.

  • Parameters cadEmailChID and cadEmailChResponse become mandatory if parameter cadEmail is present and it is not empty. We can get the parameter from POST ./auth/email with the intent edit.

PUT parameters

NameValue TypeValidationDetails
cadNumestringRequiredTeacher first name
cadPrenumestringRequiredTeacher last name
cadSexintrequiredGender; 0=undefined, 1=male, 2=female
cadCnpnumericOptionalTeacher social number
cadDataNasteriistringOptionalDate of birth; rfc_date.
cadTelefonstringOptionalValid phone number.
cadTelefonChIDstringRequiredTeacher challenge ID.
cadTelefonChResponsestringRequiredTeacher challenge response.
cadEmailstringOptionalTeacher email.
cadEmailChIDstringRequiredEmail challenge ID.
cadEmailChResponsestringRequiredEmail challenge response.

Validation

Error FieldError CodeError Message
cadID101cadID is invalid.
cadID102cadID is deleted.
cadCnp101cadCnp is invalid.
cadDataNasterii101cadDataNasterii is invalid.
cadDataNasterii102cadDataNasterii doesn't match cadCnp.

Output example

{
"result": true
}