POST api/my/basura/foodwaste/assign/truck/routes

Request Information

URI Parameters

None.

Body Parameters

FoodWasteTrucksRouteCreateDTO
NameDescriptionTypeAdditional information
groupid

integer

None.

truckid

integer

None.

customerid

integer

None.

pickupaddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "groupid": 1,
  "truckid": 2,
  "customerid": 3,
  "pickupaddress": "sample string 4"
}

application/xml, text/xml

Sample:
<FoodWasteTrucksRouteCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <customerid>3</customerid>
  <groupid>1</groupid>
  <pickupaddress>sample string 4</pickupaddress>
  <truckid>2</truckid>
</FoodWasteTrucksRouteCreateDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.