lumen.fingerprint-rule.create ​
Create a Lumen regex-based fingerprint override rule.
Create a Lumen fingerprint override rule via POST /api/fingerprint-rules.
See module docstring for tenancy, idempotency, and cache-invalidation notes.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-lumen |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | Public UUID of the calling organization (pass-through on output; does not scope the Lumen insert — service-key path is always global). |
pattern | string | Yes | — | Valid Python re regex. Lumen validates the regex on insert; an invalid pattern returns HTTP 422. |
fingerprint_key | string | Yes | — | Deterministic key under which matching errors are grouped. |
match_field | string | No | — | One of 'message', 'traceback', 'any'. Defaults to 'message' on Lumen. |
title_override | string | No | — | Human-readable title for the ErrorGroup created by this rule. Omit to let Lumen derive the title. |
priority | integer | No | — | Evaluation order; lower values are checked first. Defaults to 0. |
project | string | No | — | Project scope; accepts wildcards (* / prefix-* / -suffix). Defaults to '' (all projects). |
enabled | boolean | No | — | Whether the rule is active. Defaults to true. |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
rule_uuid | string | No | — | UUID of the created rule (Lumen response['id'] via public_id_field()). |
pattern | string | No | — | — |
match_field | string | No | — | — |
fingerprint_key | string | No | — | — |
title_override | string | No | — | — |
priority | integer | No | — | — |
project | string | No | — | — |
enabled | boolean | No | — | — |
created_at | string | No | — | — |
organization_uuid | string | No | — | — |
workflow_run_id | string | No | — | — |
error | string | No | — | — |
http_status | integer | No | — | — |
lumen_detail | string | No | — | — |
error_type | string | No | — | — |
failure_reason | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at_state | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "lumen.fingerprint-rule.create",
"initial_data": {
"organization_uuid": "value",
"pattern": "value",
"fingerprint_key": "value"
}
}