Skip to content
Proud to collaborate with Microsoft for Startups

appdata.retract-as-app ​

Retract records an organization published into an app-owned appdata table

Retract organization-published records from an app-owned table.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-appdata
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
identity_app_uuiduuidYes—Identity app to retract from; must be owned by the authenticated organization
database_slugstringYes—Virtual database slug
table_slugstringYes—Virtual table slug; the table must declare ownership kind 'app'
record_uuidslistYes—Record UUIDs to retract (max 500) — the ones publish-as-app returned. Explicit by design: there is no filter form, so a retraction can never sweep more than it names
reasonstringYes—Why this is being retracted; recorded on the audit row and required, not optional
request_idstringNo—Caller request id for audit correlation
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
database_slugstringYes——
table_slugstringYes——
retractedbooleanNo——
retracted_countintegerNo——
record_uuidslistNo—Record UUIDs actually retracted
retracted_atstringNo——
retracted_by_workflow_uuidstringNo—Workflow run that retracted — the provenance stamp
reasonstringNo——
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—completeRetract records
completedNoYesYes—Retracted
failedNoYesNo—Retraction failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
retractedSUCCESSRetract records an organization published into an app-owned appdata tablerecord_uuids
failedFAILUREAppdata workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "appdata.retract-as-app",
  "initial_data": {
    "organization_uuid": "value",
    "identity_app_uuid": "value",
    "database_slug": "value",
    "table_slug": "value"
  }
}