lumen.org.provision
Provision or update a Lumen subscription for an organization — setting plan tier, enabled state, and retention window.
Provision or update the Lumen plan for an organization.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-lumen |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
plan | string | No | — | — |
enabled | boolean | No | — | — |
retention_days | integer | No | — | — |
workflow_run_id | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | No | — | — |
plan | string | No | — | — |
enabled | boolean | No | — | — |
retention_days | integer | No | — | — |
rate_limit_per_minute | integer | No | — | — |
provisioned | boolean | No | — | — |
workflow_run_id | string | No | — | — |
reason | string | No | — | — |
detail | string | No | — | — |
error | 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.org.provision",
"initial_data": {
"organization_uuid": "value"
}
}