PUT
/
v3
/
workflows
/
{flow_id}
Update Workflow Endpoint
curl --request PUT \
  --url https://agent-prod.studio.lyzr.ai/v3/workflows/{flow_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "flow_name": "Updated Workflow Name",
  "flow_data": {
    "tasks": [],
    "default_inputs": {},
    "run_name": "Updated Run Name",
    "edges": []
  },
  "api_key": "sk-default-JDJARRky2GCw0vlk8ChKglquOkbHmYdK"
}'
{
  "message": "Workflow updated"
}

Authorizations

x-api-key
string
header
required

Path Parameters

flow_id
string
required

ID of the workflow to update.

Example:

"e0ab5411-8620-41c0-acdd-bac4c35fc7c0"

Body

application/json
flow_name
string
required
Example:

"Updated Workflow Name"

flow_data
object
required
Example:
{
"tasks": [],
"default_inputs": {},
"run_name": "Updated Run Name",
"edges": []
}
api_key
string
required
Example:

"sk-default-JDJARRky2GCw0vlk8ChKglquOkbHmYdK"

Response

Workflow updated successfully

message
string
Example:

"Workflow updated"