You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
Service | API | Method | Data Models | Workflow |
---|
multitenant | /tenant/application | GET | Tenant | N/A |
Description
This API gets the application that has the id that matches the one sent in the query from the tenant that has the external key sent in the request headers.
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
appId | Query | YES | String | N/A | Tenant Application ID |
Tenant id will automatically be taken from the extKey (tenant logged in from)
Output
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
{
result: true,
data:
{
"product": "TPROD",
"package": "TPROD_EXAMPLE03",
"appId": "30d2cb5fc04ce51e06000003",
"description": "this is a description for app for test tenant for test product and example03 package",
"_TTL": 86400000, // 24 hours
"keys": [
{
"key": "ff7b65bb252201121f1be95adc08f44a",
"extKeys": [
{
"expDate": new Date().getTime() + 86400000,
"extKey": "aa39b5490c4a4ed0e56d7ec1232a428f1c5b5dcabc0788ce563402e233386738fc3eb18234a486ce1667cf70bd0e8b08890a86126cf1aa8d38f84606d8a6346359a61678428343e01319e0b784bc7e2ca267bbaafccffcb6174206e8c83f2a25",
"device": {},
"geo": {}
}
],
"config": {
"dev": {
"commonFields": {},
"oauth": {
"loginMode": 'urac'
},
"urac": {
"hashIterations": 1024, //used by hasher
"seedLength": 32, //used by hasher
"tokenExpiryTTL": 2 * 24 * 3600 * 1000
}
}
}
}
]
}
}
Invalid Response
{
"result":false,
"errors":{
"codes":[602],
"details":[
{
"code":602,
"message":"Model error: + %model_error%"
}
]
}
}
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
| |
---|
400 | Business logic required data are missing |
450 | Unable to find tenant |
457 | Unable to find application |
602 | Model error: + %model_error% |
Add Comment