Create a Rule
post
/v1/uwaas/rules
Creates a rule and refreshes the rules engine.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : RuleBaseComponent
Type:
Show Source
object-
category: string
-
conditions:
-
description: string
Minimum Length:
1Maximum Length:255 -
enabled: boolean
-
id: number
-
name: string
Minimum Length:
1Maximum Length:100 -
priority: number
-
response: object
EvaluationResponse
-
scopelevels: array
Scopelevels
Minimum Number of Items:
1Unique Items Required:true -
tags: array
Tags
-
targets: object
Targets
Nested Schema : type
Type:
objectNested Schema : EvaluationResponse
Type:
Show Source
object-
params(required): object
T_RecordStringAny
Additional Properties Allowed:
trueConstruct a type with a set of arbitrary properties with any type -
type(required): string
Allowed Values:
[ "BLOCK", "ALLOW" ]
Nested Schema : Scopelevels
Type:
arrayMinimum Number of Items:
1Unique Items Required:
Show Source
true-
Array of:
string
Allowed Values:
[ "global", "org", "instance", "wallet", "asset" ]
Example:
[
"org"
]Nested Schema : T_RecordStringAny
Type:
objectAdditional Properties Allowed:
trueConstruct a type with a set of arbitrary properties with any type
Response
Supported Media Types
- application/json
201 Response
Rule created successfully.
Nested Schema : RuleBaseComponent
Type:
Show Source
object-
category: string
-
conditions:
-
description: string
Minimum Length:
1Maximum Length:255 -
enabled: boolean
-
id: number
-
name: string
Minimum Length:
1Maximum Length:100 -
priority: number
-
response: object
EvaluationResponse
-
scopelevels: array
Scopelevels
Minimum Number of Items:
1Unique Items Required:true -
tags: array
Tags
-
targets: object
Targets
Nested Schema : RuleOutput-allOf[1]
Type:
Show Source
object-
createdAt(required): string
(date-time)
-
createdBy(required): string
Minimum Length:
1Maximum Length:100 -
updatedAt(required): string
(date-time)
-
updatedBy(required): string
Minimum Length:
1Maximum Length:100
Nested Schema : EvaluationResponse
Type:
Show Source
object-
params(required): object
T_RecordStringAny
Additional Properties Allowed:
trueConstruct a type with a set of arbitrary properties with any type -
type(required): string
Allowed Values:
[ "BLOCK", "ALLOW" ]
Nested Schema : Scopelevels
Type:
arrayMinimum Number of Items:
1Unique Items Required:
Show Source
true-
Array of:
string
Allowed Values:
[ "global", "org", "instance", "wallet", "asset" ]
Example:
[
"org"
]Nested Schema : T_RecordStringAny
Type:
objectAdditional Properties Allowed:
trueConstruct a type with a set of arbitrary properties with any type
400 Response
Validation error