Skip to content
AdlyseMCP Docs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-reports
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_status
adlyse-adminadlyse-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