Admin Assign Machines

Lightweight machine list for the survey assignment panel. /admin/machines takes ~20s/page (full-history DISTINCT ON + an events UNION for first_seen) and the panel paged it serially — minutes of 'Loading machines…'. Assignment only needs recently-alive machines and the segment fields, so: one query over the last days of heartbeats + tool totals. Sub-second.

get/admin/surveys/assign-machines

Request

  • Base URL: https://api.local-mcp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.local-mcp.com/admin/surveys/assign-machines
  • Auth: none declared. Required headers: x-admin-key

Query parameters

daysinteger

Headers

x-admin-keystring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.