List machines
POST
/GetMachines
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetMachines';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"idarea":1,"Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/GetMachines \ --header 'Content-Type: application/json' \ --data '{ "idarea": 1, "Token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
idarea
required
Area id, from GetAreas.
integer
Token
required
The database token returned by Login. Sent in the request body, not
in a header.
string
Examplegenerated
{ "idarea": 1, "Token": "example"}Responses
Section titled “Responses”A list of hierarchy nodes.
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 node of the company → area → machine → point → axis tree.
object
Id
integer
Name
string
Description
string
Type
Which level of the hierarchy this node sits at.
string
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": [ { "Type": "Company" } ] }]