Skip to main content
POST
/
user
/
createWithList
JavaScript
import BeaverdockAPI from 'beaverdock-api';

const client = new BeaverdockAPI({
  apiKey: process.env['BEAVERDOCK_API_API_KEY'], // This is the default and can be omitted
});

const user = await client.user.createWithList();

console.log(user.id);
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}

Authorizations

api_key
string
header
required

Body

application/json
id
integer<int64>
Example:

10

username
string
Example:

"theUser"

firstName
string
Example:

"John"

lastName
string
Example:

"James"

email
string
Example:

"john@email.com"

password
string
Example:

"12345"

phone
string
Example:

"12345"

userStatus
integer<int32>

User Status

Example:

1

Response

Successful operation

id
integer<int64>
Example:

10

username
string
Example:

"theUser"

firstName
string
Example:

"John"

lastName
string
Example:

"James"

email
string
Example:

"john@email.com"

password
string
Example:

"12345"

phone
string
Example:

"12345"

userStatus
integer<int32>

User Status

Example:

1