data.identity.end-user.soft-delete ​
Disable or soft-delete an end-user (frees the seat)
Disable or soft-delete an EndUser (idempotent).
Input: end_user_uuid (required), mode (required: "disable"|"delete"), actor (optional). Output: end_user_uuid, status, mode, persisted.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | uuid | Yes | — | — |
mode | string | Yes | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | uuid | Yes | — | — |
status | string | Yes | — | — |
mode | string | Yes | — | — |
persisted | boolean | Yes | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Disable/soft-delete end-user |
completed | No | Yes | Yes | — | Persisted |
failed | No | Yes | No | — | Persist failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.identity.end-user.soft-delete",
"initial_data": {
"end_user_uuid": "value",
"mode": "value"
}
}