POST api/Meters/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

rqst_meters
NameDescriptionTypeAdditional information
session_id

string

None.

last_id

integer

None.

last_date

string

None.

total_meters

integer

None.

lstMeters

Collection of meters

None.

Request Formats

application/json, text/json

Sample:
{
  "session_id": "sample string 1",
  "last_id": 2,
  "last_date": "sample string 3",
  "total_meters": 4,
  "lstMeters": [
    {
      "id": 1,
      "meter_no": "sample string 2",
      "date_created": "sample string 3",
      "date_last_modified": "sample string 4",
      "assigned_name": "sample string 5",
      "assigned_mobile": "sample string 6"
    },
    {
      "id": 1,
      "meter_no": "sample string 2",
      "date_created": "sample string 3",
      "date_last_modified": "sample string 4",
      "assigned_name": "sample string 5",
      "assigned_mobile": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<rqst_meters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ruvick_3rd_Party.Models.request">
  <last_date>sample string 3</last_date>
  <last_id>2</last_id>
  <lstMeters>
    <rqst_meters.meters>
      <assigned_mobile>sample string 6</assigned_mobile>
      <assigned_name>sample string 5</assigned_name>
      <date_created>sample string 3</date_created>
      <date_last_modified>sample string 4</date_last_modified>
      <id>1</id>
      <meter_no>sample string 2</meter_no>
    </rqst_meters.meters>
    <rqst_meters.meters>
      <assigned_mobile>sample string 6</assigned_mobile>
      <assigned_name>sample string 5</assigned_name>
      <date_created>sample string 3</date_created>
      <date_last_modified>sample string 4</date_last_modified>
      <id>1</id>
      <meter_no>sample string 2</meter_no>
    </rqst_meters.meters>
  </lstMeters>
  <session_id>sample string 1</session_id>
  <total_meters>4</total_meters>
</rqst_meters>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.