Printago API
GET /v1/print-jobs/{id}/matching-troubleshoot

Get job matching troubleshooting details

Get troubleshooting details for why a job is or isn't matching to each printer

Requires: queue.view

Path Parameters

id required
string
The print job ID

Response Schema

PrintJobMatchingTroubleshoot
printersrequired
object[]
checksrequired
object[]
coderequired
enum
enabledonlineavailablereadyprofiles-configuredsubscription-slotsslots-loadedtags-matchrouting-rulesmaterial-matchfilament-profilesin-maintenancestaggered-start-holdbed-fits
contextoptional
object
bedFitProblemoptional
"unreachable-area" | "prime-tower" | "constraints-unknown" | "part-too-large" | "part-too-tall" | "part-out-of-reach"
Populated on a failed `bed-fits` check that isn't a merged plate larger than the bed: why its layout can't print here, that the printer's profiles couldn't be read, or why a part is too large for this printer.
unreachable-areaprime-towerconstraints-unknownpart-too-largepart-too-tallpart-out-of-reach
materialIdoptional
string
pattern: ^[a-z0-9]{24}$
routingChildJobIdoptional
string
On a merged plate, the first job a rule keeps off the printer.
pattern: ^[a-z0-9]{24}$
routingChildPartNameoptional
string
That job's part, by name.
routingCodeoptional
"rule-mismatch" | "rule-invalid" | "lineage-missing"
Populated on a failed `routing-rules` check: what kept the job off the printer.
rule-mismatchrule-invalidlineage-missing
routingRuleIdoptional
string
pattern: ^[a-z0-9]{24}$
routingRuleNameoptional
string
staggeredStartActiveoptional
number
staggeredStartGroupIdoptional
string
Populated on a failed `staggered-start-hold` check: the holding group + capacity.
pattern: ^[a-z0-9]{24}$
staggeredStartGroupNameoptional
string
staggeredStartLimitoptional
number
tagComparisonsoptional
object[]
Populated on a failed `tags-match` check: every required tag and whether it matched.
variantIdoptional
string
pattern: ^[a-z0-9]{24}$
messagerequired
string
passedrequired
boolean
compatiblerequired
boolean
firstFailedCheckoptional
enum
enabledonlineavailablereadyprofiles-configuredsubscription-slotsslots-loadedtags-matchrouting-rulesmaterial-matchfilament-profilesin-maintenancestaggered-start-holdbed-fits
matchedrequired
boolean
preferenceoptional
object
Where a printer that can take the job stands among the others that can, and why: the job goes to the printer ranked first.
chosenrequired
boolean
chosenPrinterIdoptional
string
The printer ranked first, when this one is not.
pattern: ^[a-z0-9]{24}$
chosenPrinterNameoptional
string
decidedByrequired
object
What decided a printer's place among the printers that can take a job.
lruoptional
true
Least recently used decided.
ruleIdoptional
string
The preference that decided, when one did.
pattern: ^[a-z0-9]{24}$
ruleNameoptional
string
tieoptional
true
Nothing told the printers apart.
messagerequired
string
One sentence saying why, shown under a heading that names the decision ("Chosen by a preference", "Not chosen"), so it gives the specifics without repeating `decidedBy` or `chosenPrinterName`.
ofrequired
number
How many printers can take the job.
rankrequired
number
1 for the printer the job goes to.
printerIdrequired
string
pattern: ^[a-z0-9]{24}$
printerNamerequired
string
routingRequirementsoptional
object[]
Every enabled routing requirement, in rule order, with what it says about this pairing. Absent when the store has none, or when the jobs on a merged plate could not be established.
childPartNameoptional
string
On a merged plate, the part the rule keeps off the printer.
outcomerequired
"passed" | "blocked" | "invalid" | "not-applied"
passedblockedinvalidnot-applied
ruleIdrequired
string
pattern: ^[a-z0-9]{24}$
ruleNamerequired
string
printJobIdrequired
string
pattern: ^[a-z0-9]{24}$
routingPreferencesoptional
object[]
The queue's preferences in rule order, ending with least recently used, with whether each took part in ranking this job's printers. Absent for a direct send, where preferences play no part, and when the jobs on a merged plate could not be established.
ruleIdoptional
string
pattern: ^[a-z0-9]{24}$
ruleNamerequired
string
statusrequired
"applied" | "invalid" | "not-applied"
appliedinvalidnot-applied

Example Response

200 OK — application/json
{
  "printJobId": "string",
  "printers": [
    {
      "printerId": "string",
      "printerName": "string",
      "matched": true,
      "compatible": true,
      "checks": [
        {
          "code": "enabled",
          "passed": true,
          "message": "string",
          "context": {
            "materialId": "string",
            "variantId": "string",
            "tagComparisons": [
              {
                "key": "string",
                "label": "string",
                "requirement": "string",
                "actual": "string",
                "matched": true
              }
            ],
            "staggeredStartGroupId": "string",
            "staggeredStartGroupName": "string",
            "staggeredStartActive": 1,
            "staggeredStartLimit": 1,
            "bedFitProblem": "unreachable-area",
            "routingCode": "rule-mismatch",
            "routingRuleId": "string",
            "routingRuleName": "string",
            "routingChildJobId": "string",
            "routingChildPartName": "string"
          }
        }
      ],
      "firstFailedCheck": "enabled",
      "preference": {
        "rank": 1,
        "of": 1,
        "chosen": true,
        "chosenPrinterId": "string",
        "chosenPrinterName": "string",
        "decidedBy": {
          "ruleId": "string",
          "ruleName": "string",
          "lru": true,
          "tie": true
        },
        "message": "string"
      },
      "routingRequirements": [
        {
          "ruleId": "string",
          "ruleName": "string",
          "outcome": "passed",
          "childPartName": "string"
        }
      ]
    }
  ],
  "routingPreferences": [
    {
      "ruleId": "string",
      "ruleName": "string",
      "status": "applied"
    }
  ]
}