data.connection.update_status ​
Update CloudConnection status via mark_* helpers
Update the status of a cloud connection via the model's mark_* helpers.
Input: organization_uuid, connection_uuid, new_status, optional status_message, optional account_info (honored on 'active' only). Output in state_data: connection_uuid, new_status, last_validated_at, validation_count, changed.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-connection |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization that owns the connection |
connection_uuid | uuid | Yes | — | UUID of the connection whose status is being updated |
new_status | string | Yes | — | One of active |
status_message | string | No | — | Optional human-readable status message |
account_info | dict | No | — | Provider account metadata (honored on 'active' only) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | UUID of the connection whose status was updated |
new_status | string | Yes | — | Status after the update |
last_validated_at | string | No | — | ISO-8601 timestamp of the last validation |
validation_count | integer | No | — | Total number of validations performed |
changed | boolean | Yes | — | True when the row was actually mutated |
organization_uuid | uuid | No | — | Organization UUID echoed from input |
failure_reason | string | No | — | Human-readable failure reason |
failure_type | string | No | — | Failure category |
failed_action | string | No | — | Name of the action method that raised |
failed_at_state | string | No | — | State the workflow was in when it failed |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failed_layer | string | No | — | Engine-stamped layer index (DAG path) |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Update connection status |
completed | No | Yes | Yes | — | Updated |
failed | No | Yes | No | — | Update 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.connection.update_status",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"new_status": "value"
}
}