POST api/my/basura/bins/customer/createbin

Request Information

URI Parameters

None.

Body Parameters

Collection of CustomerBinDTO
NameDescriptionTypeAdditional information
customerId

integer

None.

binId

integer

None.

isApproved

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "customerId": 1,
    "binId": 2,
    "isApproved": true
  },
  {
    "customerId": 1,
    "binId": 2,
    "isApproved": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerBinDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.DTO">
  <CustomerBinDTO>
    <binId>2</binId>
    <customerId>1</customerId>
    <isApproved>true</isApproved>
  </CustomerBinDTO>
  <CustomerBinDTO>
    <binId>2</binId>
    <customerId>1</customerId>
    <isApproved>true</isApproved>
  </CustomerBinDTO>
</ArrayOfCustomerBinDTO>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.