Service: Account
This API is officially released and maintained. |
This service supports the complete lifecycle of accounts which are managed by the current Qb2 device.
Method | Request | Response |
---|---|---|
List
List registered accounts.
Response
Response for list of accounts
Field | Type | Default | Unit |
---|---|---|---|
account |
repeated AccountEntry |
- |
- |
Accounts mapping from account-uuid (key) to account details (value). |
Create
Create a new account.
Request
Request to create a new user
Field | Type | Default | Unit |
---|---|---|---|
account |
- |
- |
|
the account to create |
Response
Response after account has been created.
The generated activation password in plain text will be returned only once. |
Field | Type | Default | Unit |
---|---|---|---|
activation_password |
string |
- |
- |
the activation password in plain text |
|||
uuid |
string |
- |
- |
the uuid of the account |
Reset
Get
Get Account information.
Request
Request to query account details
Field | Type | Default | Unit |
---|---|---|---|
uuid |
optional string |
- |
- |
Optional uuid of the account to get. If left empty the uuid from the presented JWT token will be used. |
Store
Store updated account data.
During account activation this method can be accessed using a JWT token with access level |
Request
Store updated account details.
Field | Type | Default | Unit |
---|---|---|---|
uuid |
optional string |
- |
- |
Optional uuid of the account to store. If not provided the uuid from the presented JWT token will be used. |
|||
account |
optional config.Account |
- |
- |
Optional account data to store. |
|||
password_update |
optional PasswordUpdate |
- |
- |
Optional password update for the account to store. |