data.appdata.document.confirm
Confirm a pending end-user document upload and mark it active (shared storage plane; an app served from its own instance reads and writes through the Data API instead)
Confirm a pending upload, flip status pending -> active.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-appdata |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID |
identity_app_uuid | uuid | No | — | (server-resolved principal from the end-user token; input ignored unless it agrees) |
end_user_uuid | uuid | No | — | (server-resolved principal from the end-user token; input ignored unless it agrees) |
request_id | string | No | — | Caller request id for audit correlation |
actor | string | No | — | Workflow caller or agent identifier |
document_uuid | uuid | Yes | — | Document UUID |
size | integer | No | — | Uploaded object size in bytes |
checksum | string | No | — | Uploaded object checksum |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
document_uuid | uuid | Yes | — | Document UUID |
status | string | Yes | — | Document status ('active') |
size | integer | No | — | Recorded object size in bytes |
checksum | string | No | — | Recorded object checksum |
confirmed_at | string | No | — | ISO-8601 confirm timestamp |
found | boolean | Yes | — | False when no pending document was found |
failure_reason | string | No | — | Engine-stamped failure reason |
failed_at_state | string | No | — | State when the workflow failed |
failed_step | string | No | — | Failed DAG step name |
failed_layer | integer | No | — | Failed DAG layer index |
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 | Confirm upload |
completed | No | Yes | Yes | — | Confirmed |
failed | No | Yes | No | — | Confirm failed |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
confirmed | SUCCESS | Confirm a pending end-user document upload and mark it active (shared storage plane; an app served from its own instance reads and writes through the Data API instead) | document_uuid |
failed | FAILURE | Appdata workflow failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.appdata.document.confirm",
"initial_data": {
"organization_uuid": "value",
"document_uuid": "value"
}
}