Rename an automation or replace its flow
https://api.norreach.app/v1/automations/{id}name renames it (any status). flow replaces the graph of a draft or paused automation — pause a running one first (409); a paused one is recompiled when it is turned back on, and contacts mid-flow stay on their own steps.
curl -X PATCH "https://api.norreach.app/v1/automations/{id}" \
-H "Authorization: Bearer $NORREACH_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Webinar follow-up (EN)"
}'{
"id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a",
"object": "automation",
"name": "Webinar follow-up (EN)",
"status": "draft",
"trigger": "manual_contacts",
"node_count": 2,
"compiled_step_count": 0,
"created_at": "2026-11-04T09:12:33.120Z",
"flow": {
"nodes": [
{
"id": "start",
"type": "trigger",
"position": {
"x": 0,
"y": 0
},
"data": {
"nodeType": "trigger",
"triggerType": "manual_contacts",
"label": "Picked contacts",
"config": {
"audience": {
"lists": [
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"
}
]
}
}
}
},
{
"id": "hello",
"type": "action",
"position": {
"x": 0,
"y": 160
},
"data": {
"nodeType": "action",
"actionType": "send_email",
"label": "Intro email",
"config": {
"subject": "Nurses for the summer",
"template": "Hi {{first_name}}, …"
}
}
}
],
"edges": [
{
"id": "start-hello",
"source": "start",
"target": "hello",
"source_handle": null,
"target_handle": null
}
],
"settings": {
"stopOnReply": true,
"name": "Webinar follow-up"
}
},
"compile_error": null
}Authorizations
Bearer authentication: send Authorization: Bearer <key>, with an API key or an OAuth access token. The key needs the scope campaigns:write. API keys and scopes
Path parameters
An id (UUID).
Headers
Any unique string (≤ 255). The same key with the same request returns the first answer for 24 hours.
Body
application/json
An automation's flow graph.
Show child attributesHide child attributes
Show child attributesHide child attributes
Show child attributesHide child attributes
The node: nodeType (trigger, action or condition), triggerType / actionType / conditionType, label and config — the flow builder's own format.
Show child attributesHide child attributes
yes / no on a condition's outgoing edges.
Flow settings (schedule, days, timezone, stopOnReply …).
Response
200application/json— Rename an automation or replace its flow
An id (UUID).
draft, active, paused or archived (stopped).
What starts the flow (e.g. manual_contacts, landing_form).
Steps in the program the engine runs (set when it is activated).
RFC 3339 UTC timestamp with milliseconds.
Why the flow can't be activated as it is (null = it compiles).
Errors
Errors are application/problem+json with a stable code.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request couldn't be read. |
| 400 | unknown_field | The request has a field this operation doesn't know. |
| 401 | unauthorized | A valid API key is required. |
| 403 | insufficient_scope | This API key doesn't have the scope this operation needs. |
| 403 | feature_not_enabled | The API isn't switched on for this workspace. |
| 403 | role_forbidden | The key's creator's role can't do this. |
| 404 | not_found | That doesn't exist. |
| 409 | idempotency_in_progress | A request with this Idempotency-Key is still running. |
| 409 | conflict | That conflicts with the current state. |
| 413 | too_large | The request body is too large. |
| 422 | validation_failed | The request has invalid fields. |
| 422 | idempotency_mismatch | This Idempotency-Key was used with a different request. |
| 429 | rate_limited | Too many requests. Slow down and try again. |
| 500 | server_error | Something went wrong on our side. |
| 503 | unavailable | The API isn't available right now. Try again shortly. |