POST api/Bilateral

Request Information

URI Parameters

None.

Body Parameters

Collection of Bilateral
NameDescriptionTypeAdditional information
Id

integer

None.

SELLER

string

None.

FromRegion

string

None.

TRADER

string

None.

BUYER

string

None.

TORegion

string

None.

PEAK

string

None.

OFFPEAK

string

None.

Period

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "SELLER": "sample string 2",
    "FromRegion": "sample string 3",
    "TRADER": "sample string 4",
    "BUYER": "sample string 5",
    "TORegion": "sample string 6",
    "PEAK": "sample string 7",
    "OFFPEAK": "sample string 8",
    "Period": "sample string 9"
  },
  {
    "Id": 1,
    "SELLER": "sample string 2",
    "FromRegion": "sample string 3",
    "TRADER": "sample string 4",
    "BUYER": "sample string 5",
    "TORegion": "sample string 6",
    "PEAK": "sample string 7",
    "OFFPEAK": "sample string 8",
    "Period": "sample string 9"
  }
]

application/xml, text/xml

Sample:
<ArrayOfBilateral xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <Bilateral>
    <BUYER>sample string 5</BUYER>
    <FromRegion>sample string 3</FromRegion>
    <Id>1</Id>
    <OFFPEAK>sample string 8</OFFPEAK>
    <PEAK>sample string 7</PEAK>
    <Period>sample string 9</Period>
    <SELLER>sample string 2</SELLER>
    <TORegion>sample string 6</TORegion>
    <TRADER>sample string 4</TRADER>
  </Bilateral>
  <Bilateral>
    <BUYER>sample string 5</BUYER>
    <FromRegion>sample string 3</FromRegion>
    <Id>1</Id>
    <OFFPEAK>sample string 8</OFFPEAK>
    <PEAK>sample string 7</PEAK>
    <Period>sample string 9</Period>
    <SELLER>sample string 2</SELLER>
    <TORegion>sample string 6</TORegion>
    <TRADER>sample string 4</TRADER>
  </Bilateral>
</ArrayOfBilateral>

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

None.