Skip to main content

SaveControlInput

A control to create, or the new rule for an existing one.

input SaveControlInput {
checkpoint: String!
conditions: [ControlConditionInput!]!
expectedVersion: Int
id: ID
join: String!
mode: String
name: String!
outcome: ControlOutcomeInput!
presetId: String
reason: String
scope: ControlScopeInput
}

Fields​

SaveControlInput.checkpoint ● String! non-null scalar​

The checkpoint the control runs at.

SaveControlInput.conditions ● [ControlConditionInput!]! non-null input​

The conditions, at most ten.

SaveControlInput.expectedVersion ● Int scalar​

The control version you last read. An update is refused if someone else changed it since.

SaveControlInput.id ● ID scalar​

The ID of the control to update. Leave empty to create one.

SaveControlInput.join ● String! non-null scalar​

all: every condition must match; any: one is enough.

SaveControlInput.mode ● String scalar​

off to create the control switched off. A new control otherwise starts in observe; an update keeps its mode.

SaveControlInput.name ● String! non-null scalar​

The control's name.

SaveControlInput.outcome ● ControlOutcomeInput! non-null input​

What happens when the conditions match.

SaveControlInput.presetId ● String scalar​

The preset the control was created from, if any.

SaveControlInput.reason ● String scalar​

Why the change was made, kept in the history.

SaveControlInput.scope ● ControlScopeInput input​

The customers and warehouses the control covers.

Member Of​

controlSetupCheck query ● saveControl mutation ● TestControlOnRecordInput input