PUT
/
v3
/
workflows
/
{flow_id}
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

Response

200
application/json

Workflow updated successfully

The response is of type object.