Skip to content
AdlyseDocs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_statusget_node_runget_workflow_schemacreate_workflowupdate_workflowdelete_workflowcreate_releaselist_releasesset_production_releasedelete_releaselist_authoring_resourceslist_tablesget_tablequery_table_rowscreate_tableadd_table_columnsadd_table_rowsupsert_table_rowsupdate_table_rowsdelete_table_rowsupdate_tabledelete_tableupdate_table_columndelete_table_columnreorder_table_columnslist_schedulesget_schedulecreate_scheduleupdate_schedulepause_scheduleresume_scheduledelete_scheduletrigger_schedulerun_assistantget_assistant_runlist_assistant_threadsget_assistant_threadlist_assistantsget_assistantcreate_assistantupdate_assistantdelete_assistantlist_assistant_handoffscreate_assistant_handoffupdate_assistant_handoffdelete_assistant_handofflist_filesread_filegrep_fileswrite_fileedit_filemove_filearchive_filelist_file_versionspromote_file_versionlist_skillsget_skillcreate_skillupdate_skilldelete_skillassign_skill_to_assistantremove_skill_from_assistantlist_agent_resourcesstart_batch_taskget_batch_taskcontrol_batch_task
adlyse-admin
adlyse-all
  1. Overview
  2. adlyse-workflows

update_workflow

Edit an existing workflow. Only the fields you pass are changed. Run with preview: true first to validate without persisting, then call again with preview: false to apply.

Passing node_config / edge_config / node_credentials replaces the whole value for that field — send complete arrays/maps, not deltas. The usual flow is get_workflow → modify the returned arrays → update_workflow.

Parameters#

NameTypeRequiredDefaultDescription
workflow_idstringyesWorkflow id (agent_…)
namestringnoNew name
descriptionstringnoNew description
task_descriptionstringnoNew task description
node_configarray | stringnoFull JSON array of node objects (replaces existing)
edge_configarray | stringnoFull JSON array of edge objects (replaces existing)
node_credentialsobjectnoFull {node_id: account_id} map (replaces existing)
usecasestringnoNew usecase key
previewbooleannofalseIf true, apply + validate inside a rolled-back transaction and return validation results without persisting

Returns#

json
{ "id": "agent_abc", "name": "Enrich Contact v2", "valid": true, "validation_errors": [], "url": "https://app.adlyse.com/workflows/agent_abc" }

Preview responses additionally carry "preview": true.

Errors#

error_typeWhen
auth_errorMissing / invalid API key
not_foundWorkflow id doesn’t exist or is outside your org
validation_errorMalformed graph JSON or graph fails authoring validation

See also#

  • get_workflow — read the current graph before editing
  • create_release — freeze the edited draft once it validates
Previouscreate_workflowNextdelete_workflow