identity.app.set-mode ​
Graduate an identity app from dev to live (one-way, irreversible)
Graduate an identity app from dev to live (ONE-WAY, irreversible).
Inputs:
- actor, organization_uuid (required)
- identity_app_uuid: the app (required)
- mode: must be "live" (dev → live is the only supported transition)
- redirect_uris: optional live redirect URI replacement for single-client apps
- client_updates: optional [{client_uuid, redirect_uris}] for multi-client apps
Outputs: switched (bool), mode, identity_app_uuid, invalid_redirect_uris
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
organization_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
mode | string | Yes | — | — |
redirect_uris | list | No | — | — |
client_updates | list | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
switched | boolean | Yes | — | — |
mode | string | No | — | — |
identity_app_uuid | uuid | No | — | — |
invalid_redirect_uris | list | No | — | — |
updated_clients | list | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
reason | 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": "identity.app.set-mode",
"initial_data": {
"actor": "value",
"organization_uuid": "value",
"identity_app_uuid": "value",
"mode": "value"
}
}