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
| Name | Value Type | Validation | Details |
|---|---|---|---|
| cadNume | string | Required | Teacher first name |
| cadPrenume | string | Required | Teacher last name |
| cadSex | int | required | Gender; 0=undefined, 1=male, 2=female |
| cadCnp | numeric | Optional | Teacher social number |
| cadDataNasterii | string | Optional | Date of birth; rfc_date. |
| cadTelefon | string | Optional | Valid phone number. |
| cadTelefonChID | string | Required | Teacher challenge ID. |
| cadTelefonChResponse | string | Required | Teacher challenge response. |
| cadEmail | string | Optional | Teacher email. |
| cadEmailChID | string | Required | Email challenge ID. |
| cadEmailChResponse | string | Required | Email challenge response. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| cadID | 101 | cadID is invalid. |
| cadID | 102 | cadID is deleted. |
| cadCnp | 101 | cadCnp is invalid. |
| cadDataNasterii | 101 | cadDataNasterii is invalid. |
| cadDataNasterii | 102 | cadDataNasterii doesn't match cadCnp. |
Output example
{"result": true}
