Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

General Information

...

ServiceAPIMethodData ModelsWorkflow
multitenant/admin/tenant/applicationGETTenantN/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 id that matches the one also sent in the query.

Input

...

Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
idQueryYESString

N/A

Tenant ID
appIdQueryYESString

N/A

Tenant Application


Output

...

Response

SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response 

Valid Response

Code Block
languagejs
titleValid Response Sample
linenumberstrue
collapsetrue
{ 
  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

Code Block
languagejs
titleError Response Sample
linenumberstrue
collapsetrue
{
    "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



Code
Description
400

Business logic required data are missing

450

Unable to find tenant

457

Unable to find application

602Model error: + %model_error%