Validation rules API
The Validation Rules Management API (version v1).
Download the OpenAPI definition (YAML)
Get Validation Rules
GET /validation-rules
GET /validation-rules
Get validation rules for user inputs
Scope(Permission) required: None
Responses
| Code | Description | Schema |
|---|---|---|
200 | Configurations successfully updated. | ValidationConfiguration |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Internal Server Error | Error |
Update Validation Rules
PUT /validation-rules
PUT /validation-rules
Update validation rules for user inputs
Scope(Permission) required: internal_validation_rule_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 |
Get Validation Rules for a field
GET /validation-rules/{field}
GET /validation-rules/{field}
Get validation rules for user inputs
Scope(Permission) required: None
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
field | path | string | Yes | name of the field |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Configurations successfully updated for the field. | ValidationConfigModel |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Field not found | |
500 | Internal Server Error | Error |
Update Validation Rules for a field
PUT /validation-rules/{field}
PUT /validation-rules/{field}
Update validation rules for user inputs for a field
Scope(Permission) required: internal_validation_rule_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 | Configurations successfully updated for the field. | ValidationConfigModel |
400 | Invalid Input Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Field not found | |
500 | Internal Server Error | Error |
Get all validators
GET /validation-rules/validators
GET /validation-rules/validators
Get all validators
Scope(Permission) required: None
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 | ||
description | string | ||
displayName | string | ||
type | string | ||
displayOrder | integer |
ValidationConfiguration
Type: array of ValidationConfigModel
ValidationConfigModel
Type: object
ValidationConfigModelForField
Type: object
RuleModel
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
validator | string | Yes | |
properties | array of MappingModel | Yes |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string |
Was this page helpful?