POST ops/housing/meterReadings/bulk

Request Information

URI Parameters

None.

Body Parameters

MeterReadingBulkPost
NameDescriptionTypeAdditional information
Readings

Collection of MeterReadingSmallPost

None.

UserUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "readings": [
    {
      "electricityReading": 1,
      "waterReading": 1,
      "readingDate": "2024-02-21T06:42:14.6709737+02:00",
      "houseId": 2
    },
    {
      "electricityReading": 1,
      "waterReading": 1,
      "readingDate": "2024-02-21T06:42:14.6709737+02:00",
      "houseId": 2
    }
  ],
  "userUid": "sample string 1"
}

application/xml, text/xml

Sample:
<MeterReadingBulkPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations.Housing">
  <Readings>
    <MeterReadingSmallPost>
      <ElectricityReading>1</ElectricityReading>
      <HouseId>2</HouseId>
      <ReadingDate>2024-02-21T06:42:14.6709737+02:00</ReadingDate>
      <WaterReading>1</WaterReading>
    </MeterReadingSmallPost>
    <MeterReadingSmallPost>
      <ElectricityReading>1</ElectricityReading>
      <HouseId>2</HouseId>
      <ReadingDate>2024-02-21T06:42:14.6709737+02:00</ReadingDate>
      <WaterReading>1</WaterReading>
    </MeterReadingSmallPost>
  </Readings>
  <UserUid>sample string 1</UserUid>
</MeterReadingBulkPost>

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 'MeterReadingBulkPost'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.