Skip to content

List measurement units

POST
/GetUnits
curl --request POST \
--url https://api.eianalytic.com/ApiWeb.svc/GetUnits \
--header 'Content-Type: application/json' \
--data '{ "Token": "example" }'
Media typeapplication/json
object
Token
required

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

string
Examplegenerated
{
"Token": "example"
}

The unit catalogue.

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>
object
Id
integer
Parameter
string
Unit
string
Description
string
Example
[
{
"Key": {
"StatusNumber": 0,
"Description": "OK"
},
"Value": [
{
"Id": 10005,
"Parameter": "gr",
"Unit": "BallBearings",
"Description": "S3"
}
]
}
]