PeumeAPI

Social publishing & inbox

Edit an automation

Replaces the top-level fields you send and keeps the rest: to change one step, send all of `steps`. The result is checked as a whole automation, so problems carry the same paths as on create.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/edit-an-automation \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "automationId": "your automationId"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: edit-an-automation.

Parameters

automationIdRequiredstring
namestring
descriptionstring

Sequences and flows.

statusstring

`draft` only for a sequence or a flow that has not left draft.

draft · active · paused

triggerobject

The trigger of the automation's kind.

orTriggersarray

Comment to DM.

graphobject

An `AutomationGraph` (with `triggers`) replaces the whole definition of any kind, sent without `trigger`, `orTriggers`, `subjects`, `filter`, `conditions`, `alert`, `steps` or `limits`. Comment to DM and flows also take their own graph, as read.

subjectsstring
filterobject

filter

conditionsobject

conditions

alertstring
stepsarray

The steps the automation's kind takes.

limitsobject

The limits of the automation's kind.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.