Skip to content

Where a sensor is mounted

POST
/GetPhantomAssignedMachines
curl --request POST \
--url https://api.eianalytic.com/ApiWeb.svc/GetPhantomAssignedMachines \
--header 'Content-Type: application/json' \
--data '{ "code": "189256049", "Token": "example" }'

Maps a sensor to the machine, point, axis and channel it is assigned to. Send code empty to get the assignment of every device.

Media typeapplication/json
object
code

Sensor serial number, or empty for all devices.

string
Token
required

The database token returned by Login. Sent in the request body, not in a header.

string

A column/row table.

Media typeapplication/json
Array<object>
object
Key

The Key half of every response envelope.

object
StatusNumber
required

0 means OK. See the Conventions page for the full table.

integer
Description
required
string
Configs

Present on some responses; empty in the documented examples.

Array<object>
object
Value
Array<object>

A generic table. columns names the fields and each entry of data is one row, positionally aligned with columns.

object
columns
Array<string>
data
Array<Array>
Example
[
{
"Key": {
"StatusNumber": 0,
"Description": "OK"
},
"Value": [
{
"columns": [
"MachineCode",
"PointIndex",
"Axis",
"Date_Time",
"Units",
"Severity",
"RealValue",
"Reason"
]
}
]
}
]