Action Management API
The WSO2 Identity Server - Action Management Rest API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
4 scopes
| Scope | Description |
|---|---|
read | internal_action_mgt_view |
write | internal_action_mgt_create |
update | internal_action_mgt_update |
delete | internal_action_mgt_delete |
Action Types
List Action Types
GET /actions/types
This API returns the detailed summary of the action types.
Scope (Permission) required: internal_action_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | ActionTypesResponse |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Actions
List Actions
GET /actions/{actionType}
This API returns actions according to the action type.
Scope (Permission) required: internal_action_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | ActionResponseList |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Add Action
POST /actions/{actionType}
This API creates an action and returns the action details along with the action's unique ID.
Scope (Permission) required: internal_action_mgt_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
Request body (required): application/json
This represents the information of the action to be created.
Schema: ActionModel
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the action. |
description | string | Description of the action. | |
endpoint | Endpoint | Yes | Endpoint configurations of the action. |
rule | ORRule | Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Action Created | ActionResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
501 | Not Implemented | Error |
Retrieve Action by ID
GET /actions/{actionType}/{actionId}
This API provides the capability to retrieve the action by action Id.
Scope (Permission) required: internal_action_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
actionId | path | string | Yes | Unique identifier of the action. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | ActionResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Delete Action
DEL /actions/{actionType}/{actionId}
This API deletes an action using the action's type and unique ID.
Scope (Permission) required: internal_action_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
actionId | path | string | Yes | Unique identifier of the action. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Action Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
501 | Not Implemented | Error |
Update Action
PATCH /actions/{actionType}/{actionId}
This API updates an action and return the updated action.
Scope (Permission) required: internal_action_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
actionId | path | string | Yes | Unique identifier of the action. |
Request body (required): application/json
This represents the action to be updated.
Schema: ActionUpdateModel
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Updating name of the action. | |
description | string | Updating description of the action. | |
endpoint | EndpointUpdateModel | Updating endpoint configurations of the action. | |
rule | ORRule | Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action Updated | ActionResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Activate Action
POST /actions/{actionType}/{actionId}/activate
This API activates an action using the action's type and unique ID.
Scope (Permission) required: internal_action_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
actionId | path | string | Yes | Unique identifier of the action. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action Activated | ActionBasicResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Deactivate Action
POST /actions/{actionType}/{actionId}/deactivate
This API deactivates an action using the action's type and unique ID.
Scope (Permission) required: internal_action_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
actionType | path | any | Yes | Name of the Action Type. Allowed values: |
actionId | path | string | Yes | Unique identifier of the action. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Action Deactivated | ActionBasicResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
501 | Not Implemented | Error |
Schemas
ActionModel
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the action. |
description | string | Description of the action. | |
endpoint | Endpoint | Yes | Endpoint configurations of the action. |
rule | ORRule | Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied. |
Endpoint
Type: object
Endpoint configurations of the action.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | HTTPS URI of the endpoint. |
authentication | AuthenticationType | Yes | The type of authentication required by the action's endpoint. The following options are supported:
|
allowedHeaders | array of string | List of HTTP headers to forward to the extension. | |
allowedParameters | array of string | List of parameters to forward to the extension. |
EndpointResponse
Type: object
Endpoint configurations of the action.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | HTTPS URI of the endpoint. |
authentication | AuthenticationTypeResponse | Yes | Authentication configurations of the action. |
allowedHeaders | array of string | List of HTTP headers to forward to the extension. | |
allowedParameters | array of string | List of parameters to forward to the extension. |
ActionResponse
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Unique identifier of the action. | |
type | ActionType | Action types supported. Allowed values: | |
name | string | Name of the action. | |
description | string | Description of the action. | |
status | string | Status of the action. Allowed values: | |
createdAt | string | Created time of the action. | |
updatedAt | string | Last updated time of the action. | |
endpoint | EndpointResponse | Endpoint configurations of the action. | |
rule | ORRuleResponse | Rule configured for the action. |
ActionBasicResponse
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Unique identifier of the action. | |
type | ActionType | Action types supported. Allowed values: | |
name | string | Name of the action. | |
description | string | Description of the action. | |
status | string | Status of the action. Allowed values: | |
createdAt | string | Created time of the action. | |
updatedAt | string | Last updated time of the action. | |
links | array of Link |
Link
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string | Url of the endpoint. | |
method | string | Http method. Allowed values: | |
rel | string | Relation to the resource. |
ActionResponseList
Type: array of ActionBasicResponse
ActionTypesResponse
Type: array of ActionTypesResponseItem
ActionTypesResponseItem
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | ActionType | Action types supported. Allowed values: | |
displayName | string | Display name of the action type. | |
description | string | Description of the action type. | |
count | integer | Number of actions configured under the action type. | |
self | string | API endpoint referring to the location of the given action type. |
AuthenticationType
Type: object
The type of authentication required by the action's endpoint. The following options are supported:
-
NONE: No authentication is required.
{ "type": "NONE" } -
BASIC: Basic authentication with a username and password.
{ "type": "BASIC", "properties": { "username": "auth_username", "password": "auth_password" } } -
API_KEY: API key-based authentication, where the key is provided in an HTTP header.
{ "type": "API_KEY", "properties": { "header": "X-API-Key", "value": "12345-abcde-67890" } } -
BEARER: Bearer token-based authentication.
{ "type": "BEARER", "properties": { "accessToken": "0d6fed02-eac0-332b-8998-213a543139a0" } }
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Allowed values: |
properties | object | Authentication properties specific to the selected type. |
AuthenticationTypeResponse
Type: object
Authentication configurations of the action.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Type of the authentication. Allowed values: |
ActionUpdateModel
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Updating name of the action. | |
description | string | Updating description of the action. | |
endpoint | EndpointUpdateModel | Updating endpoint configurations of the action. | |
rule | ORRule | Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied. |
EndpointUpdateModel
Type: object
Updating endpoint configurations of the action.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Updating HTTPS URI of the endpoint. | |
authentication | AuthenticationType | The type of authentication required by the action's endpoint. The following options are supported:
| |
allowedHeaders | array of string | List of HTTP headers to forward to the extension. | |
allowedParameters | array of string | List of parameters to forward to the extension. |
ORRule
Type: object
Represents a rule configuration that combines multiple sub-rules with an OR condition. If any of the sub-rules evaluate to true, the ORRule is considered satisfied.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | The logical condition for combining the sub-rules. For ORRule, the value must always be "OR". Allowed values: | |
rules | array of ANDRule |
ORRuleResponse
Type: object
Rule configured for the action.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | Allowed values: | |
rules | array of ANDRuleResponse | A list of sub-rules that are combined using the OR condition. Each sub-rule is an ANDRule. |
ANDRule
Type: object
A sub-rule that combines expressions with AND condition.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | Yes | The logical condition for combining the expressions. For ANDRule, the value must always be "AND". Allowed values: |
expressions | array of Expression | Yes | A list of expressions that are combined using the AND condition. All expressions must evaluate to true for the ANDRule to pass. |
ANDRuleResponse
Type: object
Represents a rule configuration that combines multiple expressions with an AND condition. All expressions in the ANDRule must evaluate to true for the rule to be satisfied.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | The logical condition for combining the expressions. For ANDRule, the value must always be "AND". Allowed values: | |
expressions | array of ExpressionResponse | A list of expressions that are combined using the AND condition. All expressions must evaluate to true for the ANDRule to pass. |
Expression
Type: object
Represents a single logical condition or comparison within a rule. An expression defines a field, an operator, and a value that is evaluated.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
field | string | Yes | The field or attribute of the entity being evaluated (e.g.,application, role). |
operator | string | Yes | The comparison operator used to evaluate the field and value. Common operators include "equals", "contains", "startsWith", etc. |
value | string | Yes | The value that the field is compared against based on the operator. |
ExpressionResponse
Type: object
Expressions in the rule.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
field | string | ||
operator | string | ||
value | string |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
Was this page helpful?