app.update
The app.update service is used to update an existing application token.
The application session must have organization administrator privileges.
TR50 Request
{
"put": {
"command": "app.update",
"params": {
"name": "myname",
"desc": "My application description",
"token": "qwertyasdf1234567890zxcvb",
"autoRegThingDefId": "",
"autoRegTags": ["", ""],
"autoRegSecTags": ["", ""],
"roles": ["", ""],
"isSuperAdmin": false,
"isSuperOps": false,
"isOrgAdmin": false,
"license": ""
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
name |
String |
|
The name of the application token. |
desc |
String |
|
The description. |
token |
String |
Yes |
The token string |
autoRegThingDefId |
String |
|
|
autoRegTags |
Array |
|
|
autoRegSecTags |
Array |
|
|
roles |
Array |
|
The roles granted to the application during execution. |
isSuperAdmin |
Boolean |
|
If the application should run with SuperAdmin permissions. |
isSuperOps |
Boolean |
|
If the application should run with SuperOps permissions. |
isOrgAdmin |
Boolean |
|
If the application should run with Org-Admin permissions. |
license |
String |
|
|
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message are returned.
{
"put": {
"success": true
}
}