POST ./scoli/enrollment
First step of the enrollment process. Should send a validation email.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| schoolName | string | Required | School name. |
| schoolCountryID | int | Required | Country ID |
| schoolCountyID | int | Required | County ID |
| schoolCityID | int | Required | City ID |
| schoolCityName | string | Optional | City name |
| schoolAddress | string | Required | Address. |
| firstName | string | Required | Scholl administrator first name. |
| lastName | string | Required | Scholl administrator last name. |
| phone | string | Required; valid_phone | Scholl administrator phone number. |
| password | string | Required | Password; min_length[5] |
| confirmPassword | string | Required | Password confirmation; Should match with password ; min_length[5] |
| string | Required; valid_email | Scholl administrator email address. | |
| consent_owner | int | Required,values[1] | |
| consent_tos | int | Required,values[1] | The comment. |
| recaptcha | string | Required | Google's recpatcha. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| recaptcha | 101 | Invalid recpatcha. |
| schoolCountryID | 102 | The country does not exist. |
| phone | 27 | The field must contain a valid phone number. (+4012345789) |
| password | 7 | The field must be at least %% characters in length. |
| confirmPassword | 7 | The field must be at least %% characters in length. |
| 3 | The field must contain a valid email address. | |
| consent_owner | 26 | The field must contain a one of the following values: %%. |
| consent_tos | 26 | The field must contain a one of the following values: %%. |
Output example
{"result": true}
