automations_write
Arguments
String!
required
The workspace
revision you reviewed.ID!
required
The workspace’s id.
Returns
The outcome of
commitWorkspace.Show fields
Show fields
required
Why an INVALID commit was refused, or notes on what a COMMITTED one saved.
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.
ID
The resource’s id, once it exists.
String
The resource’s revision after the commit. For an automation, pass it to
publishAutomation as expectedRevision.required
What the commit did.
required
The workspace after the commit.
Show fields
Show fields
required
Problems in the current text. Commit refuses while any is an ERROR. Apply a fix by passing its
edits to updateWorkspace.Show fields
Show fields
String!
required
A stable code, such as E0101.
Int
1-based column on that line.
required
Suggested fixes, best first.
Int
1-based line in the document, when it has one.
String!
required
What is wrong.
required
How much it matters.
String!
required
ID!
required
The workspace’s id.
ID
The resource it edits; null until a new resource is first committed.
required
What kind of resource it edits.
String!
required
The workspace’s current revision. Opaque; pass it as
expectedRevision to updateWorkspace and commitWorkspace.Boolean!
required
True when the resource changed since this workspace started, so commit will return STALE. Start a new workspace and redo your edits.
Example
mutation {
commitWorkspace(expectedRevision: "...", id: "...") {
resourceId
resourceRevision
status
}
}