Get Organization List¶
List the organizations which the current user belongs according to the Access Token.
Request Format¶
GET https://{apigw-address}/app-portal-service/v2.0/user/organization/list
Request Parameters (Header)¶
| Name | Required or Not | Data Type | Description | 
|---|---|---|---|
| Authorization | true | String | Access Token, represented as Bearer Token. Refer to Log In or Refresh Access Token to learn how to get Access Token. | 
Response Parameters¶
| Name | Data Type | Description | 
|---|---|---|
| data | data struct | Organization list | 
data Struct¶
| Name | Data Type | Description | 
|---|---|---|
| organizations | IdNamePair struct | Details of the organizations | 
IdNamePair Struct¶
| Name | Data Type | Description | 
|---|---|---|
| id | String | Organization ID | 
| name | String | Organization name | 
Sample¶
Request Sample¶
GET
https://{apigw-address}/app-portal-service/v2.0/user/organization/list
headers: {"Authorization":"Bearer APP_PORTAL_S_TDKKeqfYBK3m5z3LRgKVqThWDYnRBN44"}
Return Sample¶
{
  "code": 200,
  "message": "",
  "data": {
    "organizations": [
      {
        "id": "yourOrgId_1",
        "name": "rm_0726_001"
      },
      {
        "id": "yourOrgId_2",
        "name": "Portal Demo"
      }
    ]
  }
}