Update a Flow

Update an existing Agentic Flow.

Partially updates a Flow. Send only the attributes you want to change inside data.attributes. Writable attributes: name, enabled, nodes, connections. Requires editor access. Supplying nodes or connections replaces the whole array (there is no per-node patch), and the resulting graph is validated with the same rules as on creation (2 to 20 nodes, 1 to 45 connections).

Toggling a Flow on or off:

{
  "data": {
    "type": "flow",
    "attributes": {
      "enabled": false
    }
  }
}

Replacing the graph with a direct threat-feed alert (Schedule Time → Run Saved Search → Send Email) that emails the matched IOCs directly, one per line, with no AI reasoning in between:

{
  "data": {
    "type": "flow",
    "attributes": {
      "nodes": [
        {
          "id": "n1",
          "type": "NODE_TYPE_SCHEDULE_TIME",
          "name": "Hourly",
          "schedule_node": {
            "cron_expression": "0 * * * *",
            "timezone": "UTC"
          }
        },
        {
          "id": "n2",
          "type": "NODE_TYPE_RUN_SAVED_SEARCH",
          "name": "New malicious URLs",
          "run_saved_search_node": {
            "saved_search_id": "ss-malicious-urls"
          }
        },
        {
          "id": "n3",
          "type": "NODE_TYPE_SEND_EMAIL",
          "name": "Alert the SOC",
          "send_email_node": {
            "notification_emails": ["[email protected]"],
            "email_subject": "${string(nodes.n2.output.match_count)} new malicious URLs",
            "message": "${nodes.n2.output.matched_items.join(\"\\n\")}"
          }
        }
      ],
      "connections": [
        { "source_node_id": "n1", "target_node_id": "n2", "source_handle": "" },
        { "source_node_id": "n2", "target_node_id": "n3", "source_handle": "" }
      ]
    }
  }
}
Path Params
string
required

Flow ID.

Body Params
json
required

Partial Flow object with the attributes to change.

Headers
string
required

Your API key.

string

Optional. ID of the group whose API quota should be charged for the request. If omitted, the parent group's quota is used. Only relevant when your API key belongs to more than one group (multi-tenancy).

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json