GET api/measurementtypes/{measurementTypeId}

Gets the measurement type by identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
measurementTypeId

The measurement type identifier.

integer

Required

Body Parameters

None.

Response Information

Resource Description

MeasurementTypeViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

Invalid Chars: .!@#$%^&*\|`~=+/?<>()[],"

Leading or trailing white spaces are not allowed

Max length: 30

Description

string

Max length: 255

UnitId

integer

None.

ChartType

ReportChartType

None.

PenSize

integer

None.

Quantity

ReportSeriesQuantity

None.

Statistic

MeasurementCompressionMethod

None.

Summary

MeasurementCompressionMethod

None.

IsHidden

boolean

None.

IsAutoCalculated

boolean

None.

IsEditable

boolean

None.

IncludeInGISRealtime

boolean

None.

TotalUnitId

integer

None.

IsEvent

boolean

None.

ClassId

integer

Required

IsMobileMeasurement

boolean

None.

color

string

None.

DecimalPlaces

integer

None.

TotalDecimalPlaces

integer

None.

LineStyle

ReportSeriesLineStyle

None.

PointStyle

ReportSeriesPointStyle

None.

PointSize

integer

None.

IsCore

boolean

None.

Links

Gets the links.

Collection of LinkModel

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "unitId": 4,
  "chartType": 0,
  "penSize": 5,
  "quantity": 0,
  "statistic": 0,
  "summary": 0,
  "isHidden": true,
  "isAutoCalculated": true,
  "isEditable": true,
  "includeInGISRealtime": true,
  "totalUnitId": 1,
  "isEvent": true,
  "classId": 11,
  "isMobileMeasurement": true,
  "color": "#000000",
  "decimalPlaces": 14,
  "totalDecimalPlaces": 15,
  "lineStyle": 0,
  "pointStyle": 0,
  "pointSize": 16,
  "isCore": true
}

application/xml, text/xml

Sample:
<MeasurementTypeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models">
  <ChartType>None</ChartType>
  <ClassId>11</ClassId>
  <DecimalPlaces>14</DecimalPlaces>
  <Description>sample string 3</Description>
  <Id>1</Id>
  <IncludeInGISRealtime>true</IncludeInGISRealtime>
  <IsAutoCalculated>true</IsAutoCalculated>
  <IsCore>true</IsCore>
  <IsEditable>true</IsEditable>
  <IsEvent>true</IsEvent>
  <IsHidden>true</IsHidden>
  <IsMobileMeasurement>true</IsMobileMeasurement>
  <LineStyle>None</LineStyle>
  <Name>sample string 2</Name>
  <PenSize>5</PenSize>
  <PointSize>16</PointSize>
  <PointStyle>None</PointStyle>
  <Quantity>Min</Quantity>
  <Statistic>Default</Statistic>
  <Summary>Default</Summary>
  <TotalDecimalPlaces>15</TotalDecimalPlaces>
  <TotalUnitId>1</TotalUnitId>
  <UnitId>4</UnitId>
  <color>#000000</color>
</MeasurementTypeViewModel>