Versions Compared

Key

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

General Information


ServiceAPIMethodData ModelsWorkflow
multitenancy/tenantsGETTenantN/A

Input


Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
typeQueryNOString
"enum": ["product", "client"]
Tenant Type

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:
   [ 
	 { 
	   _id: '5d7fa308d5ee5a3d2ca439da',
       oauth: {
			secret: "%secret%",
			redirectURI: "http://domain.com",
			grants: [
				"password",
				"refresh_token"
			],
			disabled: 0,
			type: 2.0,
			loginMode: "urac"
       },
       code: 'test',
       name: 'Test Tenant',
       description: 'this is a description for test tenant',
       applications: [Array] 
	 } 
   ] 
}

Invalid Response

Code Block
languagejs
titleError Response Sample
linenumberstrue
collapsetrue
{
    "result":false,
    "errors":{
        "codes":[436],
        "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

460

Unable to find tenant

602Model error: + %model_error%