POST ./nomenclature/ethnicities
Used to add an ethnicity.
POST parameters
| Name | Value Type | Validation | Details |
|---|
| 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 |
|---|
| 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
}