Skip to main content
search

Diagnostics Search

Semantic ranking signal for the troubleshooting (diagnose) search.

GET
/api/records/{company_name}/diagnostics/search

Context-scoped counterpart of the global search: it authorizes with the exact gate of the diagnostics data endpoints (MACHINE_TEMPLATE_READ on the diagnose context resource, share links included) and returns bare (entity_type, entity_id, score) hits for the symptoms/causes (or, when requested, routines/chain nodes) of that context. The client fuses these scores into its local lexical ranking; ids it does not know locally are dropped.

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

company_namestringrequired
permission_object_typeenum<string>queryrequired

Kind of the diagnose context resource, like the diagnostics data routes

Available options: templates, machines
permission_object_idstringqueryrequired

Id of the diagnose context resource: a machine (incl. chain machines) or a (chain) template — the same object the diagnostics data endpoints authorize on

Required string length: 24 - 24
Pattern: ^[0-9a-f]{24}$
Example: 5eb7cf5a86d9755df3a6c593
qstringqueryrequired

Free-text search query

Required string length: 1 - 500
limitintegerquerydefault:20
Required range: 1 <= x <= 50
node_scopestring[] | nullquery

For chain contexts: restrict to these child template ids. Validated as an intersection with the server-derived children; unknown ids are ignored

entity_typeenum<string>[] | nullquery

Restrict to these entity types (default: symptom + cause, unchanged from before this filter existed). Allowed: ['cause', 'chain_node', 'routine', 'symptom', 'symptom_group'].

Response

application/json

Successful Response

hitsobject[]required