Skip to main content
PATCH
/
api
/
v1
/
flow
/
{uuid}
/
steps
/
{step}
Update any subset of a step's fields
curl --request PATCH \
  --url https://{subdomain}.mihu.ai/api/v1/flow/{uuid}/steps/{step} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "app_uid": "<string>",
  "trigger_key": "<string>",
  "action_key": "<string>",
  "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "app_connection_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "config": {}
}
'
{
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "position": 123,
    "kind": "trigger",
    "status": "draft",
    "parent_step_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "branch_key": "true",
    "app": {
      "uid": "<string>",
      "name": "<string>",
      "icon": "<string>",
      "category": "builtin",
      "requires_connection": true
    },
    "trigger": {
      "key": "<string>",
      "name": "<string>"
    },
    "action": {
      "key": "<string>",
      "name": "<string>"
    },
    "agent": {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "app_connection": {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "label": "<string>"
    },
    "config": {},
    "last_test": {
      "data": {}
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required
step
string<uuid>
required

Body

application/json
app_uid
string

Switch app — clears trigger/action/config/connection.

trigger_key
string | null
action_key
string | null
agent_uuid
string<uuid> | null
app_connection_uuid
string<uuid> | null
config
object

Response

Updated

data
object

One step of a flow. The first step in a flow is always a trigger (kind=trigger); subsequent steps are actions. Branch children (under an if_condition) appear flat in the parent flow's steps[] with parent_step_uuid + branch_key populated.