Update Flow draft
update_flow_draftReplaces the complete draft Flow definitionJson and optional layout. Set top-level definition.senderIdentityId to an active tenant identity ID for the central Flow sender; null or omission uses the tenant default. On a send_flow_email node, optional senderIdentityId overrides the sender for that step only; omit that node field to inherit the Flow sender. Reusable Flow Emails have no sender setting. Sender precedence is step override, Flow sender, tenant default. First call get_flow_definition or get_flow_details and pass the exact revision as expectedRevision. Call validate_flow_definition first and pass normalizedDefinition when valid. This does not publish or activate the Flow: sender changes require confirmed publication with prepare_publish_flow and commit_publish_flow, and running instances keep their version's selection. Test sends use the tenant default. Existing horizontal and vertical layouts are both supported. For logic-only edits omit layout and layoutMeta to preserve the arrangement. When changing positions, send layout together with the saved layoutMetaJson as layoutMeta (null means legacy horizontal; {version:1,direction:"TB"} means vertical).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"flowId": "<flowId>",
"expectedRevision": "<expectedRevision>",
"definition": "<definition>"
},
"name": "update_flow_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | Flow ID | |
| layout | No | ||
| definition | Yes | Complete replacement Flow definition, including top-level senderIdentityId (ID or null for tenant default) and optional send_flow_email node senderIdentityId overrides; omit a node override to inherit. | |
| layoutMeta | No | ||
| expectedRevision | Yes | Exact revision returned by the latest Flow read |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | ||
| requestId | Yes | ||
| definitionJson | Yes | ||
| draftUpdatedAt | Yes |