Validation API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1
The WSO2 Identity Platform - Validation API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
clientCredentials flow, token URL https://api.asgardeo.io/t/{org-name}/oauth2/token
1 scopes
| Scope | Description |
|---|---|
internal_config_mgt_update | Grants permission to update validation configurations |
Validation Rules
GET /validation-rules
GET /validation-rules
Get validation rules for user inputs (e.g., password).
Responses
| Code | Description | Schema |
|---|---|---|
200 | Configurations successfully updated. | ValidationConfiguration |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
PUT /validation-rules
PUT /validation-rules
Update validation rules for user inputs.
Scopes required: internal_config_mgt_update
Request body (required): application/json
Represents the validation criteria.
Schema: ValidationConfiguration
Responses
| Code | Description | Schema |
|---|---|---|
200 | Configurations successfully updated. | ValidationConfiguration |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
Validation Rules for a specific field
GET /validation-rules/{field}
GET /validation-rules/{field}
Get validation rules for a particular field of user inputs (e.g., password).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
field | path | string | Yes | name of the field |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully updated configurations for the field. | ValidationConfigModel |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Invalid or unsupported field is provided. | NotFoundError |
500 | Internal Server Error | Error |
PUT /validation-rules/{field}
PUT /validation-rules/{field}
Update validation rules of a particular field of user inputs.
Scopes required: internal_config_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
field | path | string | Yes | name of the field |
Request body (required): application/json
Represents the validation criteria.
Schema: ValidationConfigModelForField
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully updated configurations for the field. | ValidationConfigModel |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Invalid or unsupported field is provided. | NotFoundError |
500 | Internal Server Error | Error |
Validators
GET /validation-rules/validators
GET /validation-rules/validators
Retrieve all available validators that can be configured.
Responses
| Code | Description | Schema |
|---|---|---|
200 | Configurations successfully updated. | array of ValidatorModel |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
Schemas
ValidatorModel
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Allowed values: | |
name | string | ||
properties | array of PropertyModel |
PropertyModel
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Name of the validator property. | |
description | string | Description for the validator property. | |
displayName | string | Display name for the validator property. | |
type | string | Type of the validator property value. | |
displayOrder | integer | Display the order of the validator property. |
ValidationConfiguration
Type: array of ValidationConfigModel
ValidationConfigModel
Type: object
ValidationConfigModelForField
Type: object
RuleModel
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
validator | string | Yes | Name of the validator. |
properties | array of MappingModel | Yes |
MappingModel
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Name of the validator property. |
value | string | Yes | Value of the validator property. |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string |
NotFoundError
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string |
Was this page helpful?