POST api/Substation/Edit?voltageLevelIds={voltageLevelIds}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
voltageLevelIds

string

Required

Body Parameters

Substation
NameDescriptionTypeAdditional information
SubstationId

integer

None.

Name

string

None.

DRActivated

boolean

None.

ELActivated

boolean

None.

ProtectionId

integer

None.

ConstituentId

integer

None.

SLDUpload

string

None.

SLDMaker

string

None.

Protection

ProtectionMaster

None.

Constituents

ConstituentsMaster

None.

Request Formats

application/json, text/json

Sample:
{
  "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"
  }
}

application/xml, text/xml

Sample:
<Substation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <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>

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

Response Information

Resource Description

None.