PUT api/Distributor/Sectors

Request Information

URI Parameters

None.

Body Parameters

UpdateObj
NameDescriptionTypeAdditional information
token

string

None.

deviceId

integer

None.

sectors

Collection of Sector

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "deviceId": 2,
  "sectors": [
    {
      "sectorName": "sample string 1",
      "sectorCrop": "sample string 2",
      "sectorArea": "sample string 3",
      "valves": null
    },
    {
      "sectorName": "sample string 1",
      "sectorCrop": "sample string 2",
      "sectorArea": "sample string 3",
      "valves": null
    }
  ]
}

application/xml, text/xml

Sample:
<UpdateObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiegoAppDistribuidoresAPI.Models">
  <deviceId>2</deviceId>
  <sectors>
    <Sector>
      <sectorArea>sample string 3</sectorArea>
      <sectorCrop>sample string 2</sectorCrop>
      <sectorName>sample string 1</sectorName>
      <valves i:nil="true" />
    </Sector>
    <Sector>
      <sectorArea>sample string 3</sectorArea>
      <sectorCrop>sample string 2</sectorCrop>
      <sectorName>sample string 1</sectorName>
      <valves i:nil="true" />
    </Sector>
  </sectors>
  <token>sample string 1</token>
</UpdateObj>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.