API v1.0 contract to implement
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
| Scope | Description |
|---|---|
process | process request generate response |
Other
handle pre-update profile events
POST /
Request body (required): application/json
Schema: RequestBody
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
flowId | string | A unique identifier that associates with the profile update flow in WSO2 Identity Server. | |
requestId | string | A unique correlation identifier that associates with the profile update request received by WSO2 Identity Server. | |
actionType | string | Yes | Specifies the action being triggered, which in this case is PRE_UPDATE_PROFILE Allowed values: |
event | Event | Yes | 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
| Code | Description | Schema |
|---|---|---|
200 | Ok | one of: SuccessResponse, FailureResponse |
400 | Bad Request | ErrorResponse |
500 | Server Error | ErrorResponse |
Schemas
RequestBody
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
flowId | string | A unique identifier that associates with the profile update flow in WSO2 Identity Server. | |
requestId | string | A unique correlation identifier that associates with the profile update request received by WSO2 Identity Server. | |
actionType | string | Yes | Specifies the action being triggered, which in this case is PRE_UPDATE_PROFILE Allowed values: |
event | Event | Yes | 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
| Name | Type | Required | Description |
|---|---|---|---|
initiatorType | string | Yes | 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. |
action | string | Yes | This indicates whether the profile update was initiated over a update flow. The value must be UPDATE. |
request | Request | Yes | Defines the profile update request context |
tenant | Tenant | Yes | This property represents the tenant under which the profile update request is being processed. |
user | User | Yes | Contains information about the user associated with the profile update request, including updated user claims. |
userStore | UserStore | Yes | Indicates the user store in which the user's data is being managed. |
Request
Type: object
Defines the profile update request context
1 property
| Name | Type | Required | Description |
|---|---|---|---|
claims | array of ClaimInRequest | Yes | Defines the list of updating user attributes. |
ClaimInRequest
Type: object
Defines the user claims the user updates during profile update flow.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | Identifier of the user claim being updated. Claim uri is defined in the 'http://wso2.org/claims' dialect. |
value | object | Yes | 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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique numeric identifier of the tenant. |
name | string | Yes | 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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Defines the unique identifier of the user |
claims | array of ClaimsOfUser | Additional user claims configured in the pre update profile action to be shared with the external service at a profile update event. | |
groups | array 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
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | Yes | Identifier of the user claim being shared. Claim uri is defined in the 'http://wso2.org/claims' dialect. |
value | object | Yes | 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. |
updatingvalue | object | 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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier for the user store. |
name | string | Yes | 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
| Name | Type | Required | Description |
|---|---|---|---|
actionStatus | string | Yes | Defines the action status Allowed values: |
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
| Name | Type | Required | Description |
|---|---|---|---|
actionStatus | string | Yes | Indicates the outcome of the request. For an failure operation, this should be set to FAILED. Allowed values: |
failureReason | string | Yes | The failure message. |
failureDescription | string | Yes | 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
| Name | Type | Required | Description |
|---|---|---|---|
actionStatus | string | Yes | Indicates the outcome of the request. For an error operation, this should be set to ERROR. Allowed values: |
errorMessage | string | The error code Allowed values: | |
errorDescription | string | Yes | A detailed description of the error. |
Was this page helpful?