Skip to main content
POST
Create a new user

Body

application/json
email
string
required
fullName
string
required
Pattern: ^\p{Lu}\p{Ll}+(\p{Lu}\p{Ll}+)?( \p{Lu}\p{Ll}+(\p{Lu}\p{Ll}+)?)*$
phoneNumber
string
required
Pattern: ^(\+84|0)( ?\d){9,10}$
password
string
street
string
city
string
province
string
postalCode
string
expertise
enum<string>
Available options:
apprentice,
adept,
expert
role
enum<string>
Available options:
farmer,
receptionist,
sprayer,
admin
active
boolean

Response

200 - */*

OK

id
integer<int64>
email
string
fullName
string
phoneNumber
string
street
string
city
string
province
string
postalCode
string
expertise
enum<string>
Available options:
apprentice,
adept,
expert
role
enum<string>
Available options:
farmer,
receptionist,
sprayer,
admin
active
boolean