Equipment Endpoints
Managing, connecting and controlling tools.
List and read
GET /api/v1/equipment # {"data": [...], "total": n}
GET /api/v1/equipment/{id}
GET /api/v1/equipment/{id}/statusCreate
POST /api/v1/equipment
Content-Type: application/json
{
"name": "CVD-01",
"host": "192.168.1.100",
"port": 5000,
"mode": "passive",
"session_id": 0
}name, host and port are required. mode is active or passive (default passive). session_id is the tool’s HSMS device ID, 0–32767, and goes in the header of every data message. description is optional. Needs equipment:write.
Update and delete
PUT /api/v1/equipment/{id} # any create field, plus "enabled"
DELETE /api/v1/equipment/{id}Connect and disconnect
POST /api/v1/equipment/{id}/connect
POST /api/v1/equipment/{id}/disconnectRemote commands (S2F41)
POST /api/v1/equipment/{id}/commands
{
"rcmd": "PP-SELECT",
"parameters": [
{"name": "PPID", "value": "RECIPE-7"},
{"name": "TEMP", "value": {"type": "U4", "value": 350}}
]
}A string value is sent as ASCII; anything else is given as a typed item. The response reports the tool’s answer, including a refusal: accepted, hcack, hcack_text, and a cpack per parameter.
On-line and off-line (S1F17, S1F15)
POST /api/v1/equipment/{id}/control-state
{"state": "online"}Spooled data (S6F23)
GET /api/v1/equipment/{id}/spool # setup, last transmit, last purge
POST /api/v1/equipment/{id}/spool/transmit # ask the tool for its spool now
POST /api/v1/equipment/{id}/spool/purge # discard itGET reports connected, configured, streams, mode (unset, off, on), setup (accepted, rejected, not_supported, failed, pending, not_configured, not_connected) with setup_detail, in_progress, and last_transmit / last_purge: result (ok, no_data, busy, refused, incomplete, not_supported, failed, cancelled), action, rsda, messages received, spool_count (SpoolCountActual before, -1 if unknown), automatic, detail and times; and spooling_activated_at, spooling_deactivated_at, spool_transmit_failure_at (null until the tool reports them); the tool’s counters spool_count_actual, spool_count_total, spool_full_time; and history, the last ten operations. A request starts the operation and answers 202 with {"started": true, "operation": {...}}; follow it with GET. 409 SPOOL_BUSY while another runs. See GEM State Models for what happens on connect.
Remote commands, on-line/off-line and spool requests need messages:send and are audited.