POST api/GeneratorShutdownApp

Request Information

URI Parameters

None.

Body Parameters

Collection of GeneratorShutdown
NameDescriptionTypeAdditional information
Id

integer

None.

System

string

None.

Station

string

None.

Unit

string

None.

Size

string

None.

Period_From

string

None.

Period_To

string

None.

No_Of_Days

string

None.

Reason

string

None.

Period

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "System": "sample string 2",
    "Station": "sample string 3",
    "Unit": "sample string 4",
    "Size": "sample string 5",
    "Period_From": "sample string 6",
    "Period_To": "sample string 7",
    "No_Of_Days": "sample string 8",
    "Reason": "sample string 9",
    "Period": "sample string 10"
  },
  {
    "Id": 1,
    "System": "sample string 2",
    "Station": "sample string 3",
    "Unit": "sample string 4",
    "Size": "sample string 5",
    "Period_From": "sample string 6",
    "Period_To": "sample string 7",
    "No_Of_Days": "sample string 8",
    "Reason": "sample string 9",
    "Period": "sample string 10"
  }
]

application/xml, text/xml

Sample:
<ArrayOfGeneratorShutdown xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <GeneratorShutdown>
    <Id>1</Id>
    <No_Of_Days>sample string 8</No_Of_Days>
    <Period>sample string 10</Period>
    <Period_From>sample string 6</Period_From>
    <Period_To>sample string 7</Period_To>
    <Reason>sample string 9</Reason>
    <Size>sample string 5</Size>
    <Station>sample string 3</Station>
    <System>sample string 2</System>
    <Unit>sample string 4</Unit>
  </GeneratorShutdown>
  <GeneratorShutdown>
    <Id>1</Id>
    <No_Of_Days>sample string 8</No_Of_Days>
    <Period>sample string 10</Period>
    <Period_From>sample string 6</Period_From>
    <Period_To>sample string 7</Period_To>
    <Reason>sample string 9</Reason>
    <Size>sample string 5</Size>
    <Station>sample string 3</Station>
    <System>sample string 2</System>
    <Unit>sample string 4</Unit>
  </GeneratorShutdown>
</ArrayOfGeneratorShutdown>

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.