app.create
The app.create service is used to create a new application token.
The application session must have organization administrator privileges.
TR50 Request
{
"put": {
"command": "app.create",
"params": {
"name": "myname"
}
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
name |
String |
Yes |
The name of the application token. |
desc |
String |
|
The description. |
token |
String |
|
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 and the object id is returned. Otherwise, an error and error message are returned.
{
"put": {
"success": true,
"params": {
"id": "500000000000000000000042"
}
}
}