Skip to content
Proud to collaborate with Microsoft for Startups

data.appdata.document.request-upload ​

Register a pending end-user document and return server-chosen storage upload coordinates (shared storage plane; an app served from its own instance reads and writes through the Data API instead)

Register a pending document and return server-chosen upload coordinates.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-appdata
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
identity_app_uuiduuidNo—(server-resolved principal from the end-user token; input ignored unless it agrees)
end_user_uuiduuidNo—(server-resolved principal from the end-user token; input ignored unless it agrees)
request_idstringNo—Caller request id for audit correlation
actorstringNo—Workflow caller or agent identifier
storage_connection_uuiduuidYes—Target storage connection UUID
bucketstringYes—Target storage bucket
ref_table_slugstringNo—Optional appdata record table slug
ref_record_uuiduuidNo—Optional appdata record UUID
kindstringYes—Document kind (e.g. attachment, certificate)
content_typestringNo—Declared MIME content type
visibility_scopestringNo—Visibility scope: 'owner' or 'app'
expires_sintegerNo—Requested presign TTL in seconds

Output Schema ​

FieldTypeRequiredDefaultDescription
document_uuiduuidYes—Document UUID
storage_connection_uuiduuidYes—Storage connection UUID
bucketstringYes—Server-chosen bucket
keystringYes—Server-chosen object key
content_typestringNo—Declared MIME content type
visibility_scopestringYes—Applied visibility scope
expires_sintegerNo—Requested presign TTL in seconds
statusstringYes—Document status ('pending')
written_atstringYes—ISO-8601 write timestamp
failure_reasonstringNo—Engine-stamped failure reason
failed_at_statestringNo—State when the workflow failed
failed_stepstringNo—Failed DAG step name
failed_layerintegerNo—Failed DAG layer index
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeRequest upload
completedNoYesYes—Registered
failedNoYesNo—Request upload failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
writtenSUCCESSRegister a pending end-user document and return server-chosen storage upload coordinates (shared storage plane; an app served from its own instance reads and writes through the Data API instead)document_uuid
failedFAILUREAppdata workflow failedfailure_reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.appdata.document.request-upload",
  "initial_data": {
    "organization_uuid": "value",
    "storage_connection_uuid": "value",
    "bucket": "value",
    "kind": "value"
  }
}