const workflow = await api.workflows.get(id);
console.log(workflow.data.name);
console.log(workflow.data.steps.map((s) => `${s.id} (${s.type})`));
const run = await workflow.run({ input: { since: "2026-10-01" } });workflow = api.workflows.get(workflow_id)
print(workflow.data["name"])
print([f"{s['id']} ({s['type']})" for s in workflow.data["steps"]])
run = workflow.run(input={"since": "2026-10-01"})Ce data porta
namestringSu nome.
triggerobject{ type: "manual" | "cron" | "webhook" | "mail", … }.
stepsarrayOgni passo con il suo id, type, name e config.
edgesarray{ from, to, branch }. __triggerè il principio.
Lectura prima de cambiare
const workflow = await api.workflows.get(id);
await workflow.update({
steps: workflow.data.steps.map((step) =>
step.id === "write" ? { ...step, config: { ...step.config, model: "gemini-3.1-pro" } } : step),
});workflow = api.workflows.get(workflow_id)
workflow.update(steps=[
{**step, "config": {**step["config"], "model": "gemini-3.1-pro"}} if step["id"] == "write" else step
for step in workflow.data["steps"]
])update() valide la definizion completa novamente, quindi l'envio dei passi indietro cambiat è la forma segura — non c'è patch de un solo passo.
Erros
Un identificatore sconosciut risponde 404. Un flusso di lavoro appartiene a su conto e ningun altro può raggiunger.