automations_write
Arguments
[String!]
The
code of every risk you accept.String!
required
The draft
revision you reviewed (Automation.revision, or resourceRevision from commitWorkspace).ID!
required
The automation’s id.
Returns
The outcome of
publishAutomation.Show fields
Show fields
required
The automation after the call.
Show fields
Show fields
Boolean!
required
Whether the automation runs when its trigger fires. Change it with
updateAutomation.ID!
required
The id of this automation.
String!
required
The automation’s name.
Int
The latest published version; null until first published.
String!
required
The draft’s revision. Opaque; pass it to
publishAutomation as expectedRevision.required
Runs, newest first. Runs are deleted 30 days after they finish.Requires:
automations_readShow fields
Show fields
ArgumentsFields
String
Returns runs after this cursor.
Int
Returns the first N runs (max 100, default 25).
Only runs with one of these statuses.
required
The list of edges (each a node plus its pagination
cursor).required
The nodes in this page, without the edge/cursor wrapper — a convenience over
edges.String!
required
The draft as AutomationScript, Function code inline. To change it, open a workspace with
createWorkspace.String!
required
The draft’s trigger kind.
required
Which version runs already in flight continue on.
required
Published versions, newest first.Requires:
automations_readShow fields
Show fields
ArgumentsFields
String
Returns versions after this cursor.
Int
Returns the first N versions (max 100, default 25).
required
The list of edges (each a node plus its pagination
cursor).required
The nodes in this page, without the edge/cursor wrapper — a convenience over
edges.required
Why an INVALID publish was refused, with positions in the automation’s script.
Show fields
Show fields
String!
required
A stable code, such as E0101.
Int
1-based column on that line.
required
Suggested fixes, best first.
Show fields
Show fields
required
The edits, in order.
Boolean!
required
True when the edits insert a placeholder you must fill in before committing.
String!
required
What the fix does.
Int
1-based line in the document, when it has one.
String!
required
What is wrong.
required
How much it matters.
required
required
What publishing does to runs in progress.
Show fields
Show fields
Int!
required
Runs that move, or are cancelled, at their next wait.
Int!
required
Runs cancelled because the step they’re on was removed or changed kind.
Int!
required
Runs that continue on the new version.
required
Boolean!
required
Too many runs to count them all; the counts are a floor.
required
What happened.
Int
The version published, when PUBLISHED.
Example
mutation {
publishAutomation(acknowledgedRisks: "...", expectedRevision: "...", id: "...") {
status
version
}
}