Skip to content

list_rules

List application rules, optionally filtered by model or active state.

{
"properties": {
"application_id": {
"title": "Application Id",
"type": "string"
},
"is_active": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Is Active"
},
"model_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Model Id"
}
},
"required": [
"application_id"
],
"title": "list_rulesArguments",
"type": "object"
}
{
"properties": {
"items": {
"items": {
"properties": {
"actions": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Actions",
"type": "array"
},
"applicationId": {
"format": "uuid",
"title": "Applicationid",
"type": "string"
},
"condition": {
"additionalProperties": true,
"title": "Condition",
"type": "object"
},
"createdAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Createdat"
},
"createdBy": {
"format": "uuid",
"title": "Createdby",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Description"
},
"id": {
"format": "uuid",
"title": "Id",
"type": "string"
},
"isActive": {
"title": "Isactive",
"type": "boolean"
},
"modelId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"title": "Modelid"
},
"name": {
"title": "Name",
"type": "string"
},
"phase": {
"enum": [
"pre_save",
"post_save",
"response",
"background"
],
"title": "RulePhase",
"type": "string"
},
"priority": {
"title": "Priority",
"type": "integer"
},
"run_as": {
"default": "actor",
"enum": [
"actor",
"app_automation"
],
"title": "RuleRunAs",
"type": "string"
},
"scope": {
"additionalProperties": true,
"title": "Scope",
"type": "object"
},
"settings": {
"additionalProperties": true,
"title": "Settings",
"type": "object"
},
"tenantId": {
"format": "uuid",
"title": "Tenantid",
"type": "string"
},
"trigger": {
"enum": [
"record_create",
"record_update",
"record_save",
"record_delete",
"record_read",
"frontend_event",
"webhook_received",
"tool_called",
"manual",
"login_succeeded",
"login_failed",
"function_failed"
],
"title": "RuleTrigger",
"type": "string"
},
"updatedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Updatedat"
},
"workspaceId": {
"format": "uuid",
"title": "Workspaceid",
"type": "string"
}
},
"required": [
"id",
"tenantId",
"workspaceId",
"applicationId",
"name",
"condition",
"actions",
"trigger",
"phase",
"priority",
"isActive",
"settings",
"createdBy"
],
"title": "RuleResponse",
"type": "object"
},
"title": "Items",
"type": "array"
}
},
"required": [
"items"
],
"title": "RuleListResponse",
"type": "object"
}