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

NameValue TypeValidationDetails
uaIDintRequiredUser ID
sendWithstringRequired; Values[email,phone]The code will be sent via email or phone depending on the choise

Validation

Error FieldError CodeError Message
uaID101Invalid user ID
uaID102The user already has an account created.
sendWith103Email address not present or not valid.
sendWith104Phone number not present or not valid.

Output example

{
"result": true
}