Request Body
The draft rule, and the saved rule it replaces if any
Defaults to true. A draft that is off is previewed as the rule being off.
Variant 1AllExprTrue when every condition in the list is true. Variant 2AnyExprTrue when at least one condition in the list is true. Variant 3NotExprTrue when the condition is false. Variant 1AllExprTrue when every condition in the list is true. Variant 2AnyExprTrue when at least one condition in the list is true. Variant 3NotExprTrue when the condition is false. Variant 4CmpExprOne field compared with a value or with another field. in<>contains!=>=<=betweenexists==containsAnycontainsAllisEmptymatches
A reference to an attribute on one side of the pairing.
Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Left out for the operators that take no value: `exists`, `isEmpty`.
Variant 1RefA reference to an attribute on one side of the pairing. Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Variant 2LiteralA constant literal operand. constrequired
string | number | boolean | string | number[]
Variant 4CmpExprOne field compared with a value or with another field. in<>contains!=>=<=betweenexists==containsAnycontainsAllisEmptymatches
A reference to an attribute on one side of the pairing.
Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Left out for the operators that take no value: `exists`, `isEmpty`.
Variant 1RefA reference to an attribute on one side of the pairing. Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Variant 2LiteralA constant literal operand. constrequired
string | number | boolean | string | number[]
Variant 1AllExprTrue when every condition in the list is true. Variant 2AnyExprTrue when at least one condition in the list is true. Variant 3NotExprTrue when the condition is false. Variant 1AllExprTrue when every condition in the list is true. Variant 2AnyExprTrue when at least one condition in the list is true. Variant 3NotExprTrue when the condition is false. Variant 4CmpExprOne field compared with a value or with another field. in<>contains!=>=<=betweenexists==containsAnycontainsAllisEmptymatches
A reference to an attribute on one side of the pairing.
Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Left out for the operators that take no value: `exists`, `isEmpty`.
Variant 1RefA reference to an attribute on one side of the pairing. Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Variant 2LiteralA constant literal operand. constrequired
string | number | boolean | string | number[]
Variant 4CmpExprOne field compared with a value or with another field. in<>contains!=>=<=betweenexists==containsAnycontainsAllisEmptymatches
A reference to an attribute on one side of the pairing.
Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Left out for the operators that take no value: `exists`, `isEmpty`.
Variant 1RefA reference to an attribute on one side of the pairing. Catalog path, e.g. `userTags`, `source`, `custom.batchColor`.
refrequired
"order" | "sku" | "printer" | "part" | "orderItem"
orderskuprinterpartorderItem
Variant 2LiteralA constant literal operand. constrequired
string | number | boolean | string | number[]
The saved rule the draft would replace. Left out for a new rule.
pattern: ^[a-z0-9]{24}$
Example Request
{
"ruleId": "string",
"draft": {
"enabled": true,
"whenExpr": {
"all": []
},
"expr": {
"all": []
}
}
}
Response Schema
blockedAfterrequired
number
Pairs blocked with the draft in place.
blockedBeforerequired
number
Pairs the saved rules block.
childPartNameoptional
string
On a merged plate, the part the rule keeps off the printer.
How many jobs this example stands for.
printerNamerequired
string
The first of the jobs, in queue order.
pattern: ^[a-z0-9]{24}$
The rule that blocks the pair: after the change if newly blocked, before it if newly allowed.
pattern: ^[a-z0-9]{24}$
childPartNameoptional
string
On a merged plate, the part the rule keeps off the printer.
How many jobs this example stands for.
printerNamerequired
string
The first of the jobs, in queue order.
pattern: ^[a-z0-9]{24}$
The rule that blocks the pair: after the change if newly blocked, before it if newly allowed.
pattern: ^[a-z0-9]{24}$
The whole pending queue, evaluated or not.
True when the queue had more pairs than one request evaluates.
Example Response
{
"queued": {
"jobs": 1
},
"evaluated": {
"jobs": 1,
"printers": 1,
"pairs": 1
},
"blockedBefore": 1,
"blockedAfter": 1,
"newlyBlocked": {
"count": 1,
"examples": [
{
"printJobId": "string",
"jobLabel": "string",
"jobs": 1,
"printerId": "string",
"printerName": "string",
"ruleId": "string",
"ruleName": "string",
"childPartName": "string"
}
]
},
"newlyUnblocked": {
"count": 1,
"examples": [
{
"printJobId": "string",
"jobLabel": "string",
"jobs": 1,
"printerId": "string",
"printerName": "string",
"ruleId": "string",
"ruleName": "string",
"childPartName": "string"
}
]
},
"truncated": true
}