If you want to get information about yourself, you can use the keyword self as the username.
GET /api/users/list
{
"users": [
{
"lastname": "",
"firstname": "",
"username": "",
}
]
}
GET /api/users/list/:username
| Name | Type | Description |
|---|---|---|
| username | string |
The username of the user |
{
"lastname": "",
"firstname": "",
"username": "",
}
GET /api/users/list/:username/permissions
| Name | Type | Description |
|---|---|---|
| username | string |
The username of the user |
{
"user":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean
},
"script":{
"create": boolean,
"remove": boolean,
"read": boolean
"execute": boolean
},
"object":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean,
"canUse": boolean
},
"scense":{
"create": boolean,
"remove": boolean,
"update": boolean
},
"devices":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean,
"canUse": boolean
},
"extensions":{
"download": boolean,
"remove": boolean,
"read": boolean,
"canConfigure": boolean,
"canUse": boolean
}
}
POST /api/users/list
| Name | Type | Required | Description |
|---|---|---|---|
| username | string |
yes | The username of the user |
| password | string |
yes | The password of the user |
| firstname | string |
no | The firstname of the user |
| lastname | string |
no | The lastname of the user |
string |
no | The email of the user | |
| enabled | boolean |
no | If the user is enabled |
| permissions | ClientPermissions |
no | The permissions of the user |
| permissionTemplate | PermissionTemplate |
no | The permission template of the user |
201 Created
PUT /api/users/list
| Name | Type | Required | Description |
|---|---|---|---|
| username | string |
yes | The username of the user |
| Name | Type | Required | Description |
|---|---|---|---|
| password | string |
no | The password of the user |
| firstname | string |
no | The firstname of the user |
| lastname | string |
no | The lastname of the user |
string |
no | The email of the user | |
| enabled | boolean |
no | If the user is enabled |
| permissions | ClientPermissions |
no | The permissions of the user |
| permissionTemplate | PermissionTemplate |
no | The permission template of the user |
200 OK
DELETE /api/users/list/:username
| Name | Type | Description |
|---|---|---|
| username | string |
The username of the user |
200 OK
GET /api/users/templates
{
"name": {
"user":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean
},
"script":{
"create": boolean,
"remove": boolean,
"read": boolean
"execute": boolean
},
"object":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean,
"canUse": boolean
},
"scense":{
"create": boolean,
"remove": boolean,
"update": boolean
},
"devices":{
"create": boolean,
"remove": boolean,
"update": boolean,
"read": boolean,
"canUse": boolean
},
"extensions":{
"download": boolean,
"remove": boolean,
"read": boolean,
"canConfigure": boolean,
"canUse": boolean
}
}
}