POST api/WasteCollection?i={i}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
i

integer

Required

Body Parameters

WasteCollectionModel
NameDescriptionTypeAdditional information
mode

integer

None.

zone

string

Required

ward

string

Required

accid

integer

Required

userid

integer

Required

roleid

integer

Required

feedername

string

None.

vehicle

string

None.

vehicleid

integer

None.

route

string

None.

wasteCollect

string

None.

segwasteCollect

string

None.

wet

decimal number

None.

dry

decimal number

None.

sanitary

decimal number

None.

domestic

decimal number

None.

Total

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "mode": 1,
  "zone": "sample string 2",
  "ward": "sample string 3",
  "accid": 4,
  "userid": 5,
  "roleid": 6,
  "feedername": "sample string 7",
  "vehicle": "sample string 8",
  "vehicleid": 9,
  "route": "sample string 10",
  "wasteCollect": "sample string 11",
  "segwasteCollect": "sample string 12",
  "wet": 13.1,
  "dry": 14.1,
  "sanitary": 15.1,
  "domestic": 16.1,
  "Total": 17.1
}

application/xml, text/xml

Sample:
<WasteCollectionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWMAPI_NEW.Models">
  <Total>17.1</Total>
  <accid>4</accid>
  <domestic>16.1</domestic>
  <dry>14.1</dry>
  <feedername>sample string 7</feedername>
  <mode>1</mode>
  <roleid>6</roleid>
  <route>sample string 10</route>
  <sanitary>15.1</sanitary>
  <segwasteCollect>sample string 12</segwasteCollect>
  <userid>5</userid>
  <vehicle>sample string 8</vehicle>
  <vehicleid>9</vehicleid>
  <ward>sample string 3</ward>
  <wasteCollect>sample string 11</wasteCollect>
  <wet>13.1</wet>
  <zone>sample string 2</zone>
</WasteCollectionModel>

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.