POST api/Meters

Request Information

URI Parameters

None.

Body Parameters

Meter
NameDescriptionTypeAdditional information
MeterId

integer

None.

LegacyMeterId

integer

None.

UtilityId

integer

None.

MeterNum

string

Max length: 50

ERTNum

string

Max length: 50

UnitId

integer

None.

LocalDescription

string

Max length: 200

ReadSequence

integer

None.

MeterCode

integer

None.

Multiplier

decimal number

None.

ReadDecimals

string

Max length: 1

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

PropertyId

integer

None.

PropertyName

string

None.

UnitAddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MeterId": 1,
  "LegacyMeterId": 1,
  "UtilityId": 2,
  "MeterNum": "sample string 3",
  "ERTNum": "sample string 4",
  "UnitId": 1,
  "LocalDescription": "sample string 5",
  "ReadSequence": 1,
  "MeterCode": 1,
  "Multiplier": 1.1,
  "ReadDecimals": "sample string 6",
  "DateCreated": "2020-08-27T20:54:42.7567115+00:00",
  "DateUpdated": "2020-08-27T20:54:42.7567115+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1,
  "PropertyId": 7,
  "PropertyName": "sample string 8",
  "UnitAddress": "sample string 9"
}

application/xml, text/xml

Sample:
<Meter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>1</CreatedBy>
  <DateCreated>2020-08-27T20:54:42.7567115+00:00</DateCreated>
  <DateUpdated>2020-08-27T20:54:42.7567115+00:00</DateUpdated>
  <ERTNum>sample string 4</ERTNum>
  <LegacyMeterId>1</LegacyMeterId>
  <LocalDescription>sample string 5</LocalDescription>
  <MeterCode>1</MeterCode>
  <MeterId>1</MeterId>
  <MeterNum>sample string 3</MeterNum>
  <Multiplier>1.1</Multiplier>
  <PropertyId>7</PropertyId>
  <PropertyName>sample string 8</PropertyName>
  <ReadDecimals>sample string 6</ReadDecimals>
  <ReadSequence>1</ReadSequence>
  <UnitAddress>sample string 9</UnitAddress>
  <UnitId>1</UnitId>
  <UpdatedBy>1</UpdatedBy>
  <UtilityId>2</UtilityId>
</Meter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Meter'.

Response Information

Resource Description

Meter
NameDescriptionTypeAdditional information
MeterId

integer

None.

LegacyMeterId

integer

None.

UtilityId

integer

None.

MeterNum

string

Max length: 50

ERTNum

string

Max length: 50

UnitId

integer

None.

LocalDescription

string

Max length: 200

ReadSequence

integer

None.

MeterCode

integer

None.

Multiplier

decimal number

None.

ReadDecimals

string

Max length: 1

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

PropertyId

integer

None.

PropertyName

string

None.

UnitAddress

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MeterId": 1,
  "LegacyMeterId": 1,
  "UtilityId": 2,
  "MeterNum": "sample string 3",
  "ERTNum": "sample string 4",
  "UnitId": 1,
  "LocalDescription": "sample string 5",
  "ReadSequence": 1,
  "MeterCode": 1,
  "Multiplier": 1.1,
  "ReadDecimals": "sample string 6",
  "DateCreated": "2020-08-27T20:54:42.7567115+00:00",
  "DateUpdated": "2020-08-27T20:54:42.7567115+00:00",
  "CreatedBy": 1,
  "UpdatedBy": 1,
  "PropertyId": 7,
  "PropertyName": "sample string 8",
  "UnitAddress": "sample string 9"
}

application/xml, text/xml

Sample:
<Meter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>1</CreatedBy>
  <DateCreated>2020-08-27T20:54:42.7567115+00:00</DateCreated>
  <DateUpdated>2020-08-27T20:54:42.7567115+00:00</DateUpdated>
  <ERTNum>sample string 4</ERTNum>
  <LegacyMeterId>1</LegacyMeterId>
  <LocalDescription>sample string 5</LocalDescription>
  <MeterCode>1</MeterCode>
  <MeterId>1</MeterId>
  <MeterNum>sample string 3</MeterNum>
  <Multiplier>1.1</Multiplier>
  <PropertyId>7</PropertyId>
  <PropertyName>sample string 8</PropertyName>
  <ReadDecimals>sample string 6</ReadDecimals>
  <ReadSequence>1</ReadSequence>
  <UnitAddress>sample string 9</UnitAddress>
  <UnitId>1</UnitId>
  <UpdatedBy>1</UpdatedBy>
  <UtilityId>2</UtilityId>
</Meter>