Skip to content
Proud to collaborate with Microsoft for Startups

appdata.instance.migrate ​

Move the app's serving data from the shared server to its own Postgres instance

Move the app from the shared serving schema to its own instance.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-appdata
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
identity_app_uuiduuidYes—Identity app the credential reads; must own an appdata namespace in this organization
request_idstringNo—Caller request id for audit correlation
actorstringNo——
copy_databooleanNoTrueCopy rows from the shared schema after replaying its structure (default true)

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
backend_kindstringYes—shared
instance_uuiduuidNo——
host_namestringNo——
statestringNo—provisioning
wire_hoststringNo——
wire_portintegerNo——
active_connectionsintegerNo——
disk_bytesintegerNo——
last_activity_atstringNo——
created_atstringNo——
migrations_replayedintegerNo——
statements_appliedintegerNo——
data_copiedbooleanNo——
credentials_revokedintegerNo——
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—completeMigrate credential
completedNoYesYes—Credential migrated
failedNoYesNo—Migrate failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
migratedSUCCESSMove the app's serving data from the shared server to its own Postgres instanceinstance_uuid, migrations_replayed, data_copied
failedFAILUREAppdata workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "appdata.instance.migrate",
  "initial_data": {
    "organization_uuid": "value",
    "identity_app_uuid": "value"
  }
}