hook.delete-redirect ​
Soft delete webhook redirect and cleanup pending events
Workflow for deleting webhook redirects (soft delete).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-hookredirect |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
redirect_uuid | uuid | Yes | — | — |
workflow_run_id | string | No | — | DAG-stamped parent run id |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
redirect_uuid | uuid | No | — | — |
workflow_run_id | string | No | — | DAG-stamped parent run id |
redirect_name | string | No | — | — |
deleted_at | string | No | — | — |
soft_deleted | boolean | No | — | — |
cleanup_completed | boolean | No | — | — |
cancelled_count | integer | No | — | — |
skipped_count | integer | No | — | — |
cleanup_note | string | No | — | — |
failure_reason | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
error_message | string | No | — | — |
success | boolean | No | — | — |
failed_at | string | No | — | — |
failure_type | string | No | — | — |
retried_from | string | No | — | — |
retry_count | integer | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
validating | Yes | No | — | validate | — |
cleanup_pending_events | No | No | — | cleanup_events | — |
soft_delete | No | No | — | soft_delete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
validating | validate | soft_delete | — |
soft_delete | soft_delete | cleanup_pending_events | — |
cleanup_pending_events | cleanup_events | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
deleted | SUCCESS | Redirect was soft-deleted | redirect_uuid, deleted_at |
failed | FAILURE | Redirect deletion failed | failure_reason |
Business Errors ​
| Code | Message Template |
|---|---|
HOOK_REDIRECT_WORKFLOW_ERROR | Hook redirect workflow failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "hook.delete-redirect",
"initial_data": {
"redirect_uuid": "value"
}
}