Versions Compared

Key

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

...

Workflow: List Tenants Flow 

Data Models: Tenant

Input

...

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


Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": []
}


Invalid Response

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[436],
        "details":[
            {
                "code":436,
                "message":"Unable to find tenants."
            }
        ]
    }
}



Error Codes



Code
Description
436Unable to find tenants.


Example (CURL)

...

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
{
   "result": true,
   "data": [
      {
         
      },
      {
         
      }
   ]
}