Skip to main content
You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Action Management API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/o/api/server/v1

The WSO2 Identity Server - Action Management Rest API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

4 scopes
ScopeDescription
readinternal_org_action_mgt_view
writeinternal_org_action_mgt_create
updateinternal_org_action_mgt_update
deleteinternal_org_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_org_action_mgt_view

Responses

CodeDescriptionSchema
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_org_action_mgt_view

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

Responses

CodeDescriptionSchema
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_org_action_mgt_create

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

Request body (required): application/json

This represents the information of the action to be created.

Schema: ActionModel

4 properties
NameTypeRequiredDescription
namestringYes

Name of the action.

descriptionstring

Description of the action.

endpointEndpointYes

Endpoint configurations of the action.

ruleORRule

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

CodeDescriptionSchema
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_org_action_mgt_view

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

actionIdpathstringYes

Unique identifier of the action.

Responses

CodeDescriptionSchema
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_org_action_mgt_delete

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

actionIdpathstringYes

Unique identifier of the action.

Responses

CodeDescriptionSchema
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_org_action_mgt_update

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

actionIdpathstringYes

Unique identifier of the action.

Request body (required): application/json

This represents the action to be updated.

Schema: ActionUpdateModel

4 properties
NameTypeRequiredDescription
namestring

Updating name of the action.

descriptionstring

Updating description of the action.

endpointEndpointUpdateModel

Updating endpoint configurations of the action.

ruleORRule

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

CodeDescriptionSchema
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_org_action_mgt_update

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

actionIdpathstringYes

Unique identifier of the action.

Responses

CodeDescriptionSchema
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_org_action_mgt_update

Parameters

NameInTypeRequiredDescription
actionTypepathanyYes

Name of the Action Type.

Allowed values: preUpdatePassword, preUpdateProfile

actionIdpathstringYes

Unique identifier of the action.

Responses

CodeDescriptionSchema
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​

ActionType​

Type: string

Action types supported.

ActionModel​

Type: object

4 properties
NameTypeRequiredDescription
namestringYes

Name of the action.

descriptionstring

Description of the action.

endpointEndpointYes

Endpoint configurations of the action.

ruleORRule

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
NameTypeRequiredDescription
uristringYes

HTTPS URI of the endpoint.

authenticationAuthenticationTypeYes

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" } }

allowedHeadersarray of string

List of HTTP headers to forward to the extension.

allowedParametersarray of string

List of parameters to forward to the extension.

EndpointResponse​

Type: object

Endpoint configurations of the action.

4 properties
NameTypeRequiredDescription
uristringYes

HTTPS URI of the endpoint.

authenticationAuthenticationTypeResponseYes

Authentication configurations of the action.

allowedHeadersarray of string

List of HTTP headers to forward to the extension.

allowedParametersarray of string

List of parameters to forward to the extension.

ActionResponse​

Type: object

9 properties
NameTypeRequiredDescription
idstring

Unique identifier of the action.

typeActionType

Action types supported.

Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE

namestring

Name of the action.

descriptionstring

Description of the action.

statusstring

Status of the action.

Allowed values: ACTIVE, INACTIVE

createdAtstring

Created time of the action.

updatedAtstring

Last updated time of the action.

endpointEndpointResponse

Endpoint configurations of the action.

ruleORRuleResponse

Rule configured for the action.

ActionBasicResponse​

Type: object

8 properties
NameTypeRequiredDescription
idstring

Unique identifier of the action.

typeActionType

Action types supported.

Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE

namestring

Name of the action.

descriptionstring

Description of the action.

statusstring

Status of the action.

Allowed values: ACTIVE, INACTIVE

createdAtstring

Created time of the action.

updatedAtstring

Last updated time of the action.

linksarray of Link

Type: object

3 properties
NameTypeRequiredDescription
hrefstring

Url of the endpoint.

methodstring

Http method.

Allowed values: GET

relstring

Relation to the resource.

ActionResponseList​

Type: array of ActionBasicResponse

ActionTypesResponse​

Type: array of ActionTypesResponseItem

ActionTypesResponseItem​

Type: object

5 properties
NameTypeRequiredDescription
typeActionType

Action types supported.

Allowed values: PRE_UPDATE_PASSWORD, PRE_UPDATE_PROFILE

displayNamestring

Display name of the action type.

descriptionstring

Description of the action type.

countinteger

Number of actions configured under the action type.

selfstring

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
NameTypeRequiredDescription
typestringYes

Allowed values: NONE, BEARER, API_KEY, BASIC

propertiesobject

Authentication properties specific to the selected type.

AuthenticationTypeResponse​

Type: object

Authentication configurations of the action.

1 property
NameTypeRequiredDescription
typestringYes

Type of the authentication.

Allowed values: NONE, BEARER, API_KEY, BASIC

ActionUpdateModel​

Type: object

4 properties
NameTypeRequiredDescription
namestring

Updating name of the action.

descriptionstring

Updating description of the action.

endpointEndpointUpdateModel

Updating endpoint configurations of the action.

ruleORRule

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
NameTypeRequiredDescription
uristring

Updating HTTPS URI of the endpoint.

authenticationAuthenticationType

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" } }

allowedHeadersarray of string

List of HTTP headers to forward to the extension.

allowedParametersarray 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
NameTypeRequiredDescription
conditionstring

The logical condition for combining the sub-rules. For ORRule, the value must always be "OR".

Allowed values: OR

rulesarray of ANDRule

ORRuleResponse​

Type: object

Rule configured for the action.

2 properties
NameTypeRequiredDescription
conditionstring

Allowed values: OR

rulesarray 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
NameTypeRequiredDescription
conditionstringYes

The logical condition for combining the expressions. For ANDRule, the value must always be "AND".

Allowed values: AND

expressionsarray of ExpressionYes

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
NameTypeRequiredDescription
conditionstring

The logical condition for combining the expressions. For ANDRule, the value must always be "AND".

Allowed values: AND

expressionsarray 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
NameTypeRequiredDescription
fieldstringYes

The field or attribute of the entity being evaluated (e.g.,application, role).

operatorstringYes

The comparison operator used to evaluate the field and value. Common operators include "equals", "contains", "startsWith", etc.

valuestringYes

The value that the field is compared against based on the operator.

ExpressionResponse​

Type: object

Expressions in the rule.

3 properties
NameTypeRequiredDescription
fieldstring
operatorstring
valuestring

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

Was this page helpful?