For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Device

Device and Agent Control Management

get DeviceId

post

Get or create a device ID for an execution agent. If deviceId is provided and exists, returns it after updating lastSeenDate. If deviceId is not provided or doesn't exist, creates a new ExecutionAgent record.

Authorizations
AuthorizationstringRequired
Body
deviceIdstringOptional
facilityIdstringRequired
agentTypeEnumIdstringOptionalDefault: AGT_PWA
Responses
200

Success

application/json
deviceIdstringRequired
isNewDevicebooleanOptional
post/device/id
POST /rest/s1/admin/device/id HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "deviceId": "text",
  "facilityId": "text",
  "agentTypeEnumId": "AGT_PWA"
}
{
  "deviceId": "text",
  "isNewDevice": true
}

get DeviceInstructions

get

Fetch active instructions for a device based on scope (ALL, FACILITY, DEVICE). Returns only unacknowledged instructions within the active date range. Creates assignment records for newly assigned instructions.

Authorizations
AuthorizationstringRequired
Query parameters
deviceIdstringOptional
facilityIdstringOptional
agentTypeEnumIdstringOptional
applicationIdstringOptional
Responses
200

Success

application/json
instructionsobject[]Optional
get/device/instructions
GET /rest/s1/admin/device/instructions HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
  "instructions": [
    {}
  ]
}

acknowledge Instruction

post

Acknowledge that a device has executed an instruction. Updates the ackDate in AgentCtrlInstrAsgn for the given instruction and device.

Authorizations
AuthorizationstringRequired
Body
agentCtrlInstructionIdstringRequired
deviceIdstringRequired
Responses
200

Success

application/json
successbooleanOptional
post/device/acknowledge
POST /rest/s1/admin/device/acknowledge HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "agentCtrlInstructionId": "text",
  "deviceId": "text"
}
{
  "success": true
}

Last updated

Was this helpful?