Create Rule

Create a new rule.

Args:
create_data (RuleRequest): Data for creating a new rule.
tenant_context (TenantContext): Tenant context information.
session (AsyncDbSession): Database session.

Returns:
RulesResponse: Details of the created rule.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Pydantic model for rule requests.

Inherits:
RuleBase: The base class for rules.

string
required

The name of the rule.

string
enum
required

An enumeration.

Allowed:
string
enum
required

An enumeration.

string
enum
required

An enumeration.

Allowed:
string
enum
required

An enumeration.

Allowed:
string
enum
required

An enumeration.

attr_value
object
required

Attribute value for the rule.

integer
required

Score associated with the rule.

boolean
required

Whether the rule is enabled or not.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json