automationsEdit
Update an automation’s top-level fields (name, status, tags, start node, etc.).
To change trigger/node contents use triggersEdit /
nodesEdit — this mutation only touches the Automation
document itself.
Auth · x-app-token · required permission automationsEdit
Related: automationsPublish, automationsSetTags, automationDetail
automationsEdit(_id: String, name: String, status: String, draftOf: String, triggers: [String], nodes: [String], startNodeNs: String, tagIds: [String]): AutomationArguments
Display name.
Initial status. Almost always omit — new automations start as draft.
Do not set on create — reserved for internal draft-of-live linkage.
Existing trigger ids to attach. Usually omitted — add triggers after creation with triggersAdd.
Existing node ids to attach. Usually omitted — add nodes after creation with nodesAdd.
Namespace of the first node to run. Set once nodes exist.
Initial tag ids.
Returns
Unique identifier for this automation document (one per version/draft).
Stable namespace shared by the live automation, its versions, and its draft.
Use this — not _id — to address "the automation" across edits with
automationByNs / automationDetailByNs.
Display name shown in the automation list and builder.
One of draft, live, offline, archived, template, or version (a
past published snapshot). automations / automationsMain
exclude version, archived, and template by default unless status is
passed explicitly.
Set only on draft copies of a live automation — the _id of that live automation.
Absent on brand-new (never-published) drafts.
Whether a live/offline automation currently has an in-progress draft.
Populated by automationsMain only.
When this document was created.
When this document was last modified.
User id who created this document.
User id who last modified this document.
Resolved creator — see createdBy.
Resolved last editor — see updatedBy.
Namespace of the first node executed after a trigger fires.
Tag ids on this automation family. Set via automationsSetTags.
Resolved tags — see tagIds.
Description shown in the templates gallery. Set by automationsSaveAsTemplate.
Category shown in the templates gallery. Set by automationsSaveAsTemplate.
Version number, incremented on every automationsPublish.
1 on first publish; absent on drafts that have never gone live.
Timestamp of the most recent publish.
User id who most recently published this automation.
Timestamp this document was archived — set both when a past version is
superseded by a new publish, and when archiveAutomations archives
the whole automation.
Status to restore to via archiveAutomations(isRestore: true).
Only set while status is archived.