PUT ./nomenclature/ethnicities
Used to update an ethnicity.
POST parameters
Name | Value Type | Validation | Details |
---|
ethID | int | required | Ethnicity ID. |
ethName | string | required | Ethnicity name.(for school default language) |
ethName_{langId} | string | optional | Ethnicity {langId} name. |
ethDefault | int | optional; Values[0,1] | Set as default ethnicity on add student. |
Validation
Error Field | Error Code | Error Message |
---|
ethID | 101 | The ethnicity does not exist. |
ethName | 8 | The field can not exceed 80 characters in length. |
ethName | 18 | The field must contain a unique value |
ethName_{langId} | 8 | The field can not exceed 80 characters in length. |
ethName_{langId} | 18 | The field must contain a unique value |
Output example
{
"result": true
}