POST api/ShutdownRequest/Transformer/Edit

Request Information

URI Parameters

None.

Body Parameters

TransformerShutdownRequest
NameDescriptionTypeAdditional information
RequestId

integer

None.

SubstationId

integer

None.

ConstituentId

integer

None.

VoltageLevelId

integer

None.

MVA

string

None.

DateTimeFrom

string

None.

DateTimeTo

string

None.

EffectedParties

string

None.

Purpose

string

None.

OCLApproved

boolean

None.

Availed

boolean

None.

Remarks

string

None.

Substation

Substation

None.

Constituents

ConstituentsMaster

None.

VoltageLevel

VoltageLevelMaster

None.

Request Formats

application/json, text/json

Sample:
{
  "RequestId": 1,
  "SubstationId": 2,
  "ConstituentId": 3,
  "VoltageLevelId": 4,
  "MVA": "sample string 5",
  "DateTimeFrom": "sample string 6",
  "DateTimeTo": "sample string 7",
  "EffectedParties": "sample string 8",
  "Purpose": "sample string 9",
  "OCLApproved": true,
  "Availed": true,
  "Remarks": "sample string 12",
  "Substation": {
    "SubstationId": 1,
    "Name": "sample string 2",
    "DRActivated": true,
    "ELActivated": true,
    "ProtectionId": 5,
    "ConstituentId": 6,
    "SLDUpload": "sample string 7",
    "SLDMaker": "sample string 8",
    "Protection": {
      "ProtectionId": 1,
      "Value": "sample string 2",
      "Type": "sample string 3"
    },
    "Constituents": {
      "ConstituentId": 1,
      "Value": "sample string 2"
    }
  },
  "Constituents": {
    "ConstituentId": 1,
    "Value": "sample string 2"
  },
  "VoltageLevel": {
    "VoltageLevelId": 1,
    "Value": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<TransformerShutdownRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <Availed>true</Availed>
  <ConstituentId>3</ConstituentId>
  <Constituents>
    <ConstituentId>1</ConstituentId>
    <Value>sample string 2</Value>
  </Constituents>
  <DateTimeFrom>sample string 6</DateTimeFrom>
  <DateTimeTo>sample string 7</DateTimeTo>
  <EffectedParties>sample string 8</EffectedParties>
  <MVA>sample string 5</MVA>
  <OCLApproved>true</OCLApproved>
  <Purpose>sample string 9</Purpose>
  <Remarks>sample string 12</Remarks>
  <RequestId>1</RequestId>
  <Substation>
    <ConstituentId>6</ConstituentId>
    <Constituents>
      <ConstituentId>1</ConstituentId>
      <Value>sample string 2</Value>
    </Constituents>
    <DRActivated>true</DRActivated>
    <ELActivated>true</ELActivated>
    <Name>sample string 2</Name>
    <Protection>
      <ProtectionId>1</ProtectionId>
      <Type>sample string 3</Type>
      <Value>sample string 2</Value>
    </Protection>
    <ProtectionId>5</ProtectionId>
    <SLDMaker>sample string 8</SLDMaker>
    <SLDUpload>sample string 7</SLDUpload>
    <SubstationId>1</SubstationId>
  </Substation>
  <SubstationId>2</SubstationId>
  <VoltageLevel>
    <Value>sample string 2</Value>
    <VoltageLevelId>1</VoltageLevelId>
  </VoltageLevel>
  <VoltageLevelId>4</VoltageLevelId>
</TransformerShutdownRequest>

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

Response Information

Resource Description

None.