AccountUser
List all account users.
GET /account/user
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: List of account users. |
Source code in nukiwebapi/account_user.py
13 14 15 16 17 18 19 20 21 22 | |
Create a new account user.
PUT /account/user
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email
|
str
|
Email of the user (mandatory). |
required |
name
|
str
|
Name of the user (mandatory). |
required |
type
|
int
|
User type, 0 = user, 1 = company. |
None
|
language
|
str
|
Language code. Allowed: ["en", "de", "es", "fr", "it", "nl", "cs", "sk"] |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Created account user representation. |
Source code in nukiwebapi/account_user.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
Get details of a specific account user.
GET /account/user/{accountUserId}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_user_id
|
int
|
ID of the account user to retrieve. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Account user representation. |
Source code in nukiwebapi/account_user.py
59 60 61 62 63 64 65 66 67 68 69 70 71 | |
Update details of a specific account user.
POST /account/user/{accountUserId}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_user_id
|
int
|
ID of the account user to update. |
required |
email
|
str
|
New email (mandatory). |
required |
name
|
str
|
New name (mandatory). |
required |
language
|
str
|
Language code (mandatory). Allowed: ["en", "de", "es", "fr", "it", "nl", "cs", "sk"] |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: Updated account user representation. |
Source code in nukiwebapi/account_user.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
Delete a specific account user asynchronously.
DELETE /account/user/{accountUserId}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_user_id
|
int
|
ID of the account user to delete. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dict[str, Any]: API response confirming deletion. |
Source code in nukiwebapi/account_user.py
105 106 107 108 109 110 111 112 113 114 115 116 117 | |