POST api/ChannelPartnerLocation/CreateBulk

Request Information

URI Parameters

None.

Body Parameters

SaveBulkChannelPartnerLocation
NameDescriptionTypeAdditional information
ChannelPartnerId

integer

None.

Locations

Collection of SaveChannelPartnerLocationVm

None.

Request Formats

application/json, text/json

Sample:
{
  "ChannelPartnerId": 1,
  "Locations": [
    {
      "Id": 1,
      "Country": "sample string 2",
      "State": "sample string 3",
      "District": "sample string 4",
      "Location": "sample string 5",
      "SubLocation": "sample string 6",
      "Area": "sample string 7",
      "Pincode": "sample string 8",
      "Lat": 1.1,
      "Lng": 1.1
    },
    {
      "Id": 1,
      "Country": "sample string 2",
      "State": "sample string 3",
      "District": "sample string 4",
      "Location": "sample string 5",
      "SubLocation": "sample string 6",
      "Area": "sample string 7",
      "Pincode": "sample string 8",
      "Lat": 1.1,
      "Lng": 1.1
    }
  ]
}

application/xml, text/xml

Sample:
<SaveBulkChannelPartnerLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.ChannelPartnerModels">
  <ChannelPartnerId>1</ChannelPartnerId>
  <Locations>
    <SaveChannelPartnerLocationVm>
      <Area>sample string 7</Area>
      <Country>sample string 2</Country>
      <District>sample string 4</District>
      <Id>1</Id>
      <Lat>1.1</Lat>
      <Lng>1.1</Lng>
      <Location>sample string 5</Location>
      <Pincode>sample string 8</Pincode>
      <State>sample string 3</State>
      <SubLocation>sample string 6</SubLocation>
    </SaveChannelPartnerLocationVm>
    <SaveChannelPartnerLocationVm>
      <Area>sample string 7</Area>
      <Country>sample string 2</Country>
      <District>sample string 4</District>
      <Id>1</Id>
      <Lat>1.1</Lat>
      <Lng>1.1</Lng>
      <Location>sample string 5</Location>
      <Pincode>sample string 8</Pincode>
      <State>sample string 3</State>
      <SubLocation>sample string 6</SubLocation>
    </SaveChannelPartnerLocationVm>
  </Locations>
</SaveBulkChannelPartnerLocation>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.