data.network.account.update ​
Update a NetworkAccount (status, counters, config, name)
Apply a partial update to a NetworkAccount.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-network |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization |
network_account_uuid | uuid | Yes | — | UUID of the NetworkAccount to update |
name | string | No | — | New display name |
description | string | No | — | New description |
config | dict | No | — | Public config bag (no secrets) |
provider_metadata | dict | No | — | Provider metadata bag |
cached_sync_status | string | No | — | NetworkSyncStatus value (pending |
last_sync_error | string | No | — | Error string recorded by sync (kept internal; not echoed in output) |
active_workflow_uuid | string | No | — | Workflow uuid currently driving the account; clear by passing empty string |
touch_last_synced_at | boolean | No | — | When True, set last_synced_at to now |
actor | string | No | — | Caller initiating the update |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
network_account_uuid | uuid | Yes | — | UUID of the updated account |
updated_fields | list | Yes | — | Names of fields that were applied |
updated_at | string | Yes | — | ISO-8601 timestamp of the update |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Update account |
completed | No | Yes | Yes | — | Updated |
failed | No | Yes | No | — | Update failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
updated | SUCCESS | Update a NetworkAccount (status, counters, config, name) | — |
failed | FAILURE | Network workflow failed | failure_reason |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.network.account.update",
"initial_data": {
"organization_uuid": "value",
"network_account_uuid": "value"
}
}