Event configuration API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/event-configurations/v1
The WSO2 Identity Platform - Event Configuration Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
clientCredentials flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token
2 scopes
| Scope | Description |
|---|---|
internal_event_config_view | Grant permissions to view event configurations. |
internal_event_config_update | Grant permissions to update event configurations. |
Events Configurations
Retrieve all events.
GET /events
This API provides capability to retrieve all events of the WSO2 Identity Platform event publisher.
Permissions required:
- /permission/admin/manage/identity/eventconfig/view
Scopes required:
- internal_event_config_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | EventsList |
400 | Invalid input request. | Error |
401 | Unauthorized. | Error |
403 | Resource forbidden. | Error |
404 | Resource not found. | Error |
500 | Internal server error. | Error |
Update multiple events.
PUT /events
This API provides the capability to enable/ disable multiple events for the WSO2 Identity Platform event publisher.
You need to send the complete list of events in order for it to be accepted as a valid request.
Permissions required:
- /permission/admin/manage/identity/eventconfig/update
Scopes required:
- internal_event_config_update
Request body (required): application/json
Represents the request to configure event publishing for multiple events. You can pass an array of Event objects.
Schema: EventsList
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | EventsList |
400 | Invalid input request. | Error |
401 | Unauthorized. | Error |
403 | Resource forbidden. | Error |
404 | Resource not found. | Error |
500 | Internal server error. | Error |
Event Configurations
Retrieve event publishing configuration by event name.
GET /events/{eventName}
This API provides the capability to retrieve WSO2 Identity Platform event publisher configuration by event name.
Permissions required:
- /permission/admin/manage/identity/eventconfig/view
Scopes required:
- internal_event_config_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
eventName | path | string | Yes | Name of the event |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | EventConfigurationResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | Error |
403 | Resource forbidden. | Error |
404 | Resource not found. | Error |
500 | Internal server error. | Error |
Configure event publishing configuration by event name.
PUT /events/{eventName}
This API provides the capability to configure WSO2 Identity Platform event publisher configuration by event name.
Permissions required:
- /permission/admin/manage/identity/eventconfig/update
Scopes required:
- internal_event_config_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
eventName | path | string | Yes | Name of the event |
Request body (required): application/json
Represents the request to configure event publishing of the event. You can configure event properties by passing an array of key/ value pair objects.
Schema: EventConfigurationObject
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
publish | boolean | Yes | |
properties | array of EventProperty | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | EventConfigurationResponse |
400 | Invalid input request. | Error |
401 | Unauthorized. | Error |
403 | Resource forbidden. | Error |
404 | Resource not found. | Error |
500 | Internal server error. | Error |
Schemas
Event
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
eventName | string | Yes | |
eventSchema | string | Yes | |
displayName | string | ||
category | string | ||
publish | boolean | Yes |
EventConfigurationObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
publish | boolean | Yes | |
properties | array of EventProperty | Yes |
EventConfigurationResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
eventSchema | string | Yes | |
category | string | Yes | |
displayName | string | Yes | |
publish | boolean | Yes | |
properties | array of EventProperty | Yes |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?