Skip to content
Proud to collaborate with Microsoft for Startups

appdata.query.update ​

Update a saved query; the previous text is kept as a version

Edit a saved query, keeping every earlier version.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-appdata
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
actor_user_uuiduuidNo—Platform user this query belongs to; authorship and private visibility key off it
saved_query_uuiduuidYes——
namestringNo——
sql_textstringNo——
descriptionstringNo——
parameterslistNo——
tagslistNo——
folder_uuiduuidNo——
folder_namestringNo——
visibilitystringNo——
pinnedbooleanNo——
mark_runbooleanNo—Stamp last_run_at instead of editing; bumps no version

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
saved_query_uuiduuidNo——
namestringNo——
descriptionstringNo——
sql_textstringNo——
parameterslistNo——
tagslistNo——
folder_uuiduuidNo——
folder_namestringNo——
visibilitystringNo——
pinnedbooleanNo——
versionintegerNo——
created_by_user_uuiduuidNo——
updated_by_user_uuiduuidNo——
last_run_atstringNo——
created_atstringNo——
updated_atstringNo——
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—completeUpdate requested
completedNoYesYes—Update done
failedNoYesNo—Update failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
updatedSUCCESSUpdate a saved query; the previous text is kept as a versionsaved_query_uuid, version
failedFAILUREAppdata workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "appdata.query.update",
  "initial_data": {
    "organization_uuid": "value",
    "identity_app_uuid": "value",
    "saved_query_uuid": "value"
  }
}