Organization discovery API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1
The Organization Discovery API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize
Organization Discovery
Get discovery attributes of organizations.
GET /organizations/discovery
This API facilitates the retrieval of discovery attributes of organizations in the hierarchy, allowing filtering by discovery attribute type and value. It currently provides the capability to retrieve these attributes from only the primary organization.
Scope(Permission) required: internal_organization_discovery_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | Condition to filter the retrieval of records. | |
offset | query | integer (int32) | Number of records to skip for pagination. | |
limit | query | integer (int32) | Maximum number of records to be returned. (Should be greater than 0) |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OrganizationsDiscoveryResponse |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
501 | Not Implemented. | Error |
Map discovery attributes to the organization.
POST /organizations/discovery
This API serves the purpose of adding discovery attributes to an organization, with the current restriction that only the primary organization has the capability to perform this action.
Scope(Permission) required: internal_organization_discovery_update
Request body (required): application/json
This represents the organization discovery attributes to be added.
Schema: OrganizationDiscoveryPostRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | The ID of the organization whose discovery attributes are to be added. |
attributes | array of DiscoveryAttribute | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Successful response | OrganizationDiscoveryAttributes |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Get discovery attributes of the organization.
GET /organizations/{organization-id}/discovery
This API facilitates the retrieval of discovery attributes for an organization. It currently provides the capability to retrieve these attributes only from the primary organization.
Scope(Permission) required: internal_organization_discovery_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organization-id | path | string | Yes | ID of the organization whose discovery attributes are to be fetched. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OrganizationDiscoveryAttributes |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
501 | Not Implemented. | Error |
Update discovery attributes of an organization.
PUT /organizations/{organization-id}/discovery
This API serves the purpose of updating discovery attributes of an organization, with the current restriction that only the primary organization has the capability to perform this action.
Scope(Permission) required: internal_organization_discovery_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organization-id | path | string | Yes | ID of the organization whose discovery attributes are to be updated. |
Request body (required): application/json
Schema: OrganizationDiscoveryAttributes
1 property
| Name | Type | Required | Description |
|---|---|---|---|
attributes | array of DiscoveryAttribute | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OrganizationDiscoveryAttributes |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Delete discovery attributes of an organization.
DEL /organizations/{organization-id}/discovery
This API serves the purpose of deleting discovery attributes of an organization, with the current restriction that only the primary organization has the capability to perform this action.
Scope(Permission) required: internal_organization_discovery_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organization-id | path | string | Yes | ID of the organization whose discovery attributes are to be deleted. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully deleted | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Check whether given discovery attribute exists among the organization hierarchy.
POST /organizations/check-discovery
This API is used to verify whether a specific discovery attribute has already been associated with an organization within the hierarchy. It is available for use within any organization in the hierarchy.
Scope(Permission) required: internal_organization_discovery_view
Request body (required): application/json
Schema: OrganizationDiscoveryCheckPOSTRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | |
value | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | OrganizationDiscoveryCheckPOSTResponse |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Link
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string (uri) | Endpoint that will return the next or previous page of data. | |
rel | string | Describes whether the provided link is to access the next or previous page of data. |
OrganizationDiscoveryPostRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | The ID of the organization whose discovery attributes are to be added. |
attributes | array of DiscoveryAttribute | Yes |
OrganizationDiscoveryAttributes
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
attributes | array of DiscoveryAttribute | Yes |
DiscoveryAttribute
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | |
values | array of string |
OrganizationsDiscoveryResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
count | integer | ||
links | array of Link | ||
organizations | array of OrganizationDiscoveryResponse |
OrganizationDiscoveryResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | The ID of the organization. |
organizationName | string | Yes | The name of the organization. |
orgHandle | string | Yes | The handle of the organization. |
attributes | array of DiscoveryAttribute | Yes |
OrganizationDiscoveryCheckPOSTRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | |
value | string | Yes |
OrganizationDiscoveryCheckPOSTResponse
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
available | boolean | Yes |
Was this page helpful?