ListOrganizations
Call this API to query the organization list.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization information
|
Product |
Resource |
Required permission |
|
Organization Management |
Organization |
Read Only |
Request structure
GET https://{domain}/oapi/v1/platform/organizations
Request description |
Enterprise standard editionQuery the list of organizations a user has joined
Enterprise dedicated editionQuery the list of organizations a user has joined
Query all organization lists
|
Request headers (Headers) |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
userId User ID.
|
|
|
page [Applicable only to Enterprise Dedicated Edition] Current page. |
|
|
perPage [Applicable only to Enterprise Dedicated Edition] Number of entries per page. Valid range: |
Response parameters |
Response example
|
|
createdAt The date and time when the organization is created. |
|
|
creatorId The creator of the organization. |
|
|
defaultRole Default role. |
|
|
description Organization description. |
|
|
id Organization ID. |
|
|
name The name of the organization. |
|
|
updateAt Update time. |
Response headers
|
Parameter |
Description |
Example value |
|
x-next-page |
[Applicable only to Enterprise Dedicated Edition] Next page. |
2 |
|
x-page |
[Applicable only to Enterprise Dedicated Edition] Current page. |
1 |
|
x-per-page |
[Applicable only to Enterprise Dedicated Edition] Number of entries per page. |
100 |
|
x-prev-page |
[Applicable only to Enterprise Dedicated Edition] Previous page. |
1 |
|
x-total |
[Applicable only to Enterprise Dedicated Edition] Total number of entries. |
2 |
|
x-total-pages |
[Applicable only to Enterprise Dedicated Edition] Total number of pages. |
1 |
Error codes
For more information, see Error code center.