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

API v1.0 contract to implement

Download OpenAPI (YAML)Version v1.0

Base URL: <BASE_URL>

The API contract for pre update profile action (version v1.0).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

BearerAuth: HTTP bearer

ApiKeyAuth: API key in header "X-API-Key"

OAuth2: oauth2

clientCredentials flow, token URL https://example.com/oauth/token

1 scopes
ScopeDescription
processprocess request generate response

Other​

handle pre-update profile events​

POST /

Request body (required): application/json

Schema: RequestBody

4 properties
NameTypeRequiredDescription
flowIdstring

A unique identifier that associates with the profile update flow in WSO2 Identity Server.

requestIdstring

A unique correlation identifier that associates with the profile update request received by WSO2 Identity Server.

actionTypestringYes

Specifies the action being triggered, which in this case is PRE_UPDATE_PROFILE

Allowed values: PRE_UPDATE_PROFILE

eventEventYes

Defines the context data related to the pre-profile update event that needs to be shared with the external service to process and execute.

Responses

CodeDescriptionSchema
200

Ok

one of: SuccessResponse, FailureResponse
400

Bad Request

ErrorResponse
500

Server Error

ErrorResponse

Schemas​

RequestBody​

Type: object

4 properties
NameTypeRequiredDescription
flowIdstring

A unique identifier that associates with the profile update flow in WSO2 Identity Server.

requestIdstring

A unique correlation identifier that associates with the profile update request received by WSO2 Identity Server.

actionTypestringYes

Specifies the action being triggered, which in this case is PRE_UPDATE_PROFILE

Allowed values: PRE_UPDATE_PROFILE

eventEventYes

Defines the context data related to the pre-profile update event that needs to be shared with the external service to process and execute.

Event​

Type: object

Defines the context data related to the pre-profile update event that needs to be shared with the external service to process and execute.

6 properties
NameTypeRequiredDescription
initiatorTypestringYes

This indicates whether the profile update was initiated by an admin, a user, or an application. The value must be either USER, ADMIN, or APPLICATION.

actionstringYes

This indicates whether the profile update was initiated over a update flow. The value must be UPDATE.

requestRequestYes

Defines the profile update request context

tenantTenantYes

This property represents the tenant under which the profile update request is being processed.

userUserYes

Contains information about the user associated with the profile update request, including updated user claims.

userStoreUserStoreYes

Indicates the user store in which the user's data is being managed.

Request​

Type: object

Defines the profile update request context

1 property
NameTypeRequiredDescription
claimsarray of ClaimInRequestYes

Defines the list of updating user attributes.

ClaimInRequest​

Type: object

Defines the user claims the user updates during profile update flow.

2 properties
NameTypeRequiredDescription
uristringYes

Identifier of the user claim being updated. Claim uri is defined in the 'http://wso2.org/claims' dialect.

valueobjectYes

Updating value of the user claim in profile update request. If the claim is multi-valued as defined in the claim metadata configured in WSO2 Identity Server, value is an array of strings. Otherwise, it is a single string value.

Tenant​

Type: object

This property represents the tenant under which the profile update request is being processed.

2 properties
NameTypeRequiredDescription
idstringYes

The unique numeric identifier of the tenant.

namestringYes

The domain name of the tenant.

User​

Type: object

Contains information about the user associated with the profile update request, including updated user claims.

3 properties
NameTypeRequiredDescription
idstringYes

Defines the unique identifier of the user

claimsarray of ClaimsOfUser

Additional user claims configured in the pre update profile action to be shared with the external service at a profile update event.

groupsarray of string

Groups of the user

ClaimsOfUser​

Type: object

Defines the user claims that are configured to be shared with the external service during profile update flow.

3 properties
NameTypeRequiredDescription
uristringYes

Identifier of the user claim being shared. Claim uri is defined in the 'http://wso2.org/claims' dialect.

valueobjectYes

Value of the user claim in current profile. If the claim is multi-valued as defined in the claim metadata configured in WSO2 Identity Server, value is an array of strings. Otherwise, it is a single string value.

updatingvalueobject

Updating value of the user claim within profile update flow. If the claim is multi-valued as defined in the claim metadata configured in WSO2 Identity Server, value is an array of strings. Otherwise, it is a single string value.

UserStore​

Type: object

Indicates the user store in which the user's data is being managed.

2 properties
NameTypeRequiredDescription
idstringYes

The unique identifier for the user store.

namestringYes

User store name used to identify the user store in configuration settings, user interfaces, and administrative tasks.

SuccessResponse​

Type: object

This defines an example for a SUCCESS response without any operations. This will instruct only to procceed the profile update flow

1 property
NameTypeRequiredDescription
actionStatusstringYes

Defines the action status

Allowed values: SUCCESS

FailureResponse​

Type: object

When the external service responds with a FAILED state, it can return an HTTP status code of 200 indicating that the expected validations are not met. \n\nIf the defined failed response is received it will be handled and used to indicate the failure in UI.

3 properties
NameTypeRequiredDescription
actionStatusstringYes

Indicates the outcome of the request. For an failure operation, this should be set to FAILED.

Allowed values: FAILED

failureReasonstringYes

The failure message.

failureDescriptionstringYes

A detailed description of the failure.

ErrorResponse​

Type: object

When the external service responds with an ERROR state, it can return an HTTP status code of 400, 401 or 500, indicating that the expected validations are not met or there is an issue processing the request.

3 properties
NameTypeRequiredDescription
actionStatusstringYes

Indicates the outcome of the request. For an error operation, this should be set to ERROR.

Allowed values: ERROR

errorMessagestring

The error code

Allowed values: server_error

errorDescriptionstringYes

A detailed description of the error.

Was this page helpful?