PUT ./scoli{id}
It is used to update school info.
PUT parameters
| Name | Value Type | Validation | Details |
|---|
| liceuNume | string | Optional | School name. |
| liceuClasificare | string | Optional | School classification. |
| liceuCityID | int | Optional | School city ID. |
| liceuAdresa | string | Optional | School address. |
| liceuEmail | string | Optional | School email. |
| liceuTel | string | Optional | School phone. |
| liceuCUI | string | Optional | School CUI. |
| liceuCodSirues | string | Optional | School SIRUES. |
| liceuCodSiiir | string | Optional | School SIIIR. |
| liceuDirectorID | string | Optional | School director ID. |
| liceuSecretarID | string | Optional | School secretary ID. |
| liceuVocational | int | Optional | It is used to mark a vocational school. |
| liceuTehnic | int | Optional | It is used to mark a tehnical school. |
| liceuObservatii | string | Optional | It is used to add school observations. Only for admins. |
| liceuDefaultLanguage | string | Optional | It is used to change default school language. Only for admins. |
| liceuLogo | string | Optional | School logo. |
| labels | array | Optional | It is used to associate existing labels to school. Only for admins. |
Validation
| Error Field | Error Code | Error Message |
|---|
| liceuCUI | 101 | liceuCUI already assigned to other school! |
| liceuCodSirues | 101 | liceuCodSirues already assigned to other school! |
| liceuCodSiiir | 101 | liceuCodSiiir already assigned to other school! |
| liceuDirectorID | 101 | uaID not found! |
| liceuSecretarID | 101 | uaID not found! |
| labels | 101 | Label not found! |
| labels | 102 | Label is a system label! |
Output example
{
"result": true
}