Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Validation API

Download OpenAPI (YAML)Version v1

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
ScopeDescription
internal_config_mgt_updateGrants permission to update validation configurations

Validation Rules​

GET /validation-rules​

GET /validation-rules

Get validation rules for user inputs (e.g., password).

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
fieldpathstringYes

name of the field

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
fieldpathstringYes

name of the field

Request body (required): application/json

Represents the validation criteria.

Schema: ValidationConfigModelForField

2 properties
NameTypeRequiredDescription
rulesarray of RuleModel
regExarray of RuleModel

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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
NameTypeRequiredDescription
typestring

Allowed values: RULE, REGEX

namestring
propertiesarray of PropertyModel

PropertyModel​

Type: object

5 properties
NameTypeRequiredDescription
namestring

Name of the validator property.

descriptionstring

Description for the validator property.

displayNamestring

Display name for the validator property.

typestring

Type of the validator property value.

displayOrderinteger

Display the order of the validator property.

ValidationConfiguration​

Type: array of ValidationConfigModel

ValidationConfigModel​

Type: object

3 properties
NameTypeRequiredDescription
fieldstringYes
rulesarray of RuleModel
regExarray of RuleModel

ValidationConfigModelForField​

Type: object

2 properties
NameTypeRequiredDescription
rulesarray of RuleModel
regExarray of RuleModel

RuleModel​

Type: object

2 properties
NameTypeRequiredDescription
validatorstringYes

Name of the validator.

propertiesarray of MappingModelYes

MappingModel​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes

Name of the validator property.

valuestringYes

Value of the validator property.

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring

NotFoundError​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring

Was this page helpful?