Versions Compared

Key

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

General Information

...

ServiceAPIMethodData ModelsWorkflow
multitenancy/tenantsGET

Workflow: List Tenants Flow 

Input

...

Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
N/AN/AN/AN/AN/AThis API does not need any parameters; it fetches all tenant records.

Output

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
Code Block
languagejs
titleError Response Sample
languagejs
titleValid Response Sample
{
	"result": true,
	"data": []
}

Invalid Response

linenumberstrue
collapsetrue
{ 
  "result":false true,
  data:
  "errors":{ [ 
	 { 
	   "codes":[436],_id: '5d7fa308d5ee5a3d2ca439da',
       oauth: {
			secret: "details":[
            {%secret%",
			redirectURI: "http://domain.com",
			grants: [
				"password",
				"refresh_token"
			],
			disabled: 0,
			type: 2.0,
			loginMode: "urac"
         },
       "code":436 'test',
       name: 'Test Tenant',
       "message"description:"Unable to'this findis tenants."a description for test tenant',
       applications: }[Array] 
	  } 
   ]
    }
}

...


Invalid Response

...

Code Block

...

Request

Code Block
languagebash
titleCalling List Groups API
 > CURL -X GET http://127.0.0.1:4004/tenants

Response

{
Code Block
languagejs
titleList Groups API response
language

...

js
titleError Response Sample
linenumberstrue
collapsetrue
{
    "result":false,
    "errors":{
        "resultcodes": true,[436],
        "datadetails":[
     [       {
                },"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%