Create an account

Create an account

POST https://abc.hoola.vn/manage/api/users/create-single-user

Note: To avoid too many queries leading to server overload, the time interval between each query to create an account should be at least 5 seconds

Query Parameters

Name
Type
Description

token

string

Account Authentication Token

Request Body

Name
Type
Description

job

string

Job Title

gender

string

Gender

street

string

Street

district

string

District

city

string

City

phone

string

Phone

name

string

Full name in string format and has at least 3 characters

username

string

Username in string format with no space and special character and a length of 3 to 20 characters

email

string

Email

password

string

Password with a length of 6 to 35 characters

// Response Code "00". Create an account successfully.
// Return data:
{
    "respCode": "00",
    "user": {
        "userId": "zKpEoZmyDwMP9gtGr",
        "name": "Nguyễn Văn A",
        "username": "nguyenvana",
        "email": "nguyenvana@abc.com",
        "status": "Success created"
    },
    "msg": "Create user success"
}

Example:

// POST:
https://abc.hoola.vn/manage/api/users/create-single-user?token=sdhg23797sdbv9186jdvk58

body: {
    name: "Nguyễn Văn A",
    username: "nguyenvana",
    email: "nguyenvana@abc.com",
    password: "1234567890",
    phone: "0987654321",
    city: "Hà Nội",
    district: "Quận Cầu Giấy",
    street: "40 Hoàng Đạo Thuý",
    gender: "Nam",
    job: "Giáo viên THCS"
}

Last updated