POST api/Generator/Edit
Request Information
URI Parameters
None.
Body Parameters
GeneratorName | Description | Type | Additional information |
---|---|---|---|
GeneratorId | integer |
None. |
|
Make | string |
None. |
|
UnitCapacity | string |
None. |
|
UCDeratedUpgradation | string |
None. |
|
VoltagelevelId | integer |
None. |
|
Owner | string |
None. |
|
EffectiveStationCapacity | string |
None. |
|
SyncDate | date |
None. |
|
DesyncDate | date |
None. |
|
UnitLTAMTA | string |
None. |
|
SubstationId | integer |
None. |
|
Type | string |
None. |
|
CAC | string |
None. |
|
Substation | Substation |
None. |
|
VoltageLevel | VoltageLevelMaster |
None. |
Request Formats
application/json, text/json
Sample:
{ "GeneratorId": 1, "Make": "sample string 2", "UnitCapacity": "sample string 3", "UCDeratedUpgradation": "sample string 4", "VoltagelevelId": 5, "Owner": "sample string 6", "EffectiveStationCapacity": "sample string 7", "SyncDate": "2021-04-16T21:54:23.228605+05:30", "DesyncDate": "2021-04-16T21:54:23.228605+05:30", "UnitLTAMTA": "sample string 10", "SubstationId": 11, "Type": "sample string 12", "CAC": "sample string 13", "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" } }, "VoltageLevel": { "VoltageLevelId": 1, "Value": "sample string 2" } }
application/xml, text/xml
Sample:
<Generator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel"> <CAC>sample string 13</CAC> <DesyncDate>2021-04-16T21:54:23.228605+05:30</DesyncDate> <EffectiveStationCapacity>sample string 7</EffectiveStationCapacity> <GeneratorId>1</GeneratorId> <Make>sample string 2</Make> <Owner>sample string 6</Owner> <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>11</SubstationId> <SyncDate>2021-04-16T21:54:23.228605+05:30</SyncDate> <Type>sample string 12</Type> <UCDeratedUpgradation>sample string 4</UCDeratedUpgradation> <UnitCapacity>sample string 3</UnitCapacity> <UnitLTAMTA>sample string 10</UnitLTAMTA> <VoltageLevel> <Value>sample string 2</Value> <VoltageLevelId>1</VoltageLevelId> </VoltageLevel> <VoltagelevelId>5</VoltagelevelId> </Generator>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.