Get Organization List¶
List the organizations which the current user belongs to according to the access token.
Operation Permissions¶
User login to Application Portal is required.
Request Format¶
url: https://{apigw-address}/app-portal-service/v2.2/user/organization/list
method: GET
Request Parameters (Header)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
Authorization |
Mandatory |
String |
The access token (or bearer token). The format of the parameter’s string is Bearer {your token}. Refer to Log In or Refresh Access Token to learn how to get the access token. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
The list of the organizations. |
Data Struct¶
Name |
Data Type |
Description |
---|---|---|
organizations |
IdNamePair Struct |
The details of the organizations. |
IdNamePair Struct¶
Name |
Data Type |
Description |
---|---|---|
id |
String |
The organization ID. |
name |
String |
The organization name. |
Samples¶
Request Sample¶
GET
https://{apigw-address}/app-portal-service/v2.2/user/organization/list
headers: {"Authorization":"yourBearerToken"}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": {
"organizations": [
{
"id": "your_org_id_1",
"name": "your_org_name_1"
},
{
"id": "your_org_id_2",
"name": "your_org_name_2"
}
]
}
}