ONE workflow:update
← Receivers

workflow:update

workflow family

mcp

Rename a workflow or change its status (draft|active|paused). With { project: true }, project its steps into TypeDB as things instead (tid = the step id, thing-type step, step-kind; the step → workflow link is D1's), through the same function workflow:apply-diff runs on every save: the retry after a save answered projected:false, and the backfill for workflows saved before projection existed. { project: true, workflowId } projects one; { project: true, all: true } every workflow you control (templates excluded). Was workflow:project until 2026-11-19 (an alias for one release)

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_workflows
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/workflow:update \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workflowId": "wf_abc", "name": "Renamed Workflow" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workflowId string optional The workflow to change or project. Required except with project + all
  • name string optional
  • status draft | active | paused optional
  • project boolean optional Project the steps into TypeDB as things instead of renaming or changing status
  • all boolean optional With project: every workflow the caller controls

Response

What comes back from the call.

  • ok boolean
  • error string
  • projected boolean With project: true only when every step write landed
  • workflows number With project: workflows projected
  • steps number With project: step things written
  • failed object[]

Traffic

Every call to workflow:update, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names workflow:update, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 1
  • one.ie/web/src/lib/news/setup.ts:74
Workflow 1
  • one.ie/web/src/lib/workflow-crud-receivers.ts:1229
SDK 1
  • packages/sdk/src/receiver-layers.ts:865
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workflowId": {
      "description": "The workflow to change or project. Required except with project + all",
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "paused"
      ]
    },
    "project": {
      "description": "Project the steps into TypeDB as things instead of renaming or changing status",
      "type": "boolean"
    },
    "all": {
      "description": "With project: every workflow the caller controls",
      "type": "boolean"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "type": "string"
    },
    "projected": {
      "description": "With project: true only when every step write landed",
      "type": "boolean"
    },
    "workflows": {
      "description": "With project: workflows projected",
      "type": "number"
    },
    "steps": {
      "description": "With project: step things written",
      "type": "number"
    },
    "failed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "workflowId",
          "reason"
        ]
      }
    }
  },
  "required": [
    "ok"
  ]
}