POST ./cadre
It is used to add a teacher
POST 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. |
| cadEmail | string | Optional | Teacher email. |
| emailIntampinare | array | Optional; values[1,2] | Send teacher notifications.(1 - access code, 2 - tutorial) |
| cadRol | array | Required | Teacher roles. |
Validation
| Error Field | Error Code | Error Message |
|---|
| cadCnp | 101 | cadCnp is invalid. |
| cadDataNasterii | 101 | cadDataNasterii is invalid. |
| cadDataNasterii | 102 | cadDataNasterii doesn't match cadCnp. |
| cadRol | 101 | cadRol is invalid. |
Output example
{
"result": true
}