lumen.org.set-retention ​
Update the log-retention window (retention_days) for an organization's Lumen plan without altering the plan tier or rate limit.
Upsert the retention_days field of an org's Lumen plan row.
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 org whose retention window is being updated. |
retention_days | integer | Yes | — | New retention period in days (must be > 0). |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | No | — | — |
plan | string | No | — | — |
rate_limit_per_minute | integer | No | — | — |
retention_days | integer | No | — | — |
enabled | boolean | No | — | — |
provisioned | boolean | No | — | — |
reason | string | No | — | — |
http_status | integer | No | — | — |
detail | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
workflow_run_id | 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.org.set-retention",
"initial_data": {
"organization_uuid": "value",
"retention_days": 123
}
}