POST ./utilizatori/send_access_code
It is used to send a access code to a user.
It can be user by: headmaster, secretary, or classmaster for the student/parent where is part of.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| uaID | int | Required | User ID |
| sendWith | string | Required; Values[email,phone] | The code will be sent via email or phone depending on the choise |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| uaID | 101 | Invalid user ID |
| uaID | 102 | The user already has an account created. |
| sendWith | 103 | Email address not present or not valid. |
| sendWith | 104 | Phone number not present or not valid. |
Output example
{"result": true}
