POST api/PSP

Request Information

URI Parameters

None.

Body Parameters

Collection of PSP
NameDescriptionTypeAdditional information
PSPId

integer

None.

Constituents

string

None.

TotalOwnGeneration

decimal number

None.

NetDrawalFromGrid

decimal number

None.

TotalAvailability

decimal number

None.

UnrestrictedRequirement

decimal number

None.

Period

string

None.

PeakDemand

decimal number

None.

DemandMet

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PSPId": 1,
    "Constituents": "sample string 2",
    "TotalOwnGeneration": 3.1,
    "NetDrawalFromGrid": 4.1,
    "TotalAvailability": 5.1,
    "UnrestrictedRequirement": 6.1,
    "Period": "sample string 7",
    "PeakDemand": 8.1,
    "DemandMet": 9.1
  },
  {
    "PSPId": 1,
    "Constituents": "sample string 2",
    "TotalOwnGeneration": 3.1,
    "NetDrawalFromGrid": 4.1,
    "TotalAvailability": 5.1,
    "UnrestrictedRequirement": 6.1,
    "Period": "sample string 7",
    "PeakDemand": 8.1,
    "DemandMet": 9.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfPSP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <PSP>
    <Constituents>sample string 2</Constituents>
    <DemandMet>9.1</DemandMet>
    <NetDrawalFromGrid>4.1</NetDrawalFromGrid>
    <PSPId>1</PSPId>
    <PeakDemand>8.1</PeakDemand>
    <Period>sample string 7</Period>
    <TotalAvailability>5.1</TotalAvailability>
    <TotalOwnGeneration>3.1</TotalOwnGeneration>
    <UnrestrictedRequirement>6.1</UnrestrictedRequirement>
  </PSP>
  <PSP>
    <Constituents>sample string 2</Constituents>
    <DemandMet>9.1</DemandMet>
    <NetDrawalFromGrid>4.1</NetDrawalFromGrid>
    <PSPId>1</PSPId>
    <PeakDemand>8.1</PeakDemand>
    <Period>sample string 7</Period>
    <TotalAvailability>5.1</TotalAvailability>
    <TotalOwnGeneration>3.1</TotalOwnGeneration>
    <UnrestrictedRequirement>6.1</UnrestrictedRequirement>
  </PSP>
</ArrayOfPSP>

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.