Skip to main content
PUT
/
user
/
{username}
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
});

await client.user.update('username');

Authorizations

api_key
string
header
required

Path Parameters

username
string
required

The username that needs to be replaced

Body

Update an existent user in the store

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

default

successful operation