POST api/Editor/UpdateModule

Request Information

URI Parameters

None.

Body Parameters

ShipModuleType
NameDescriptionTypeAdditional information
IsCategory

integer

None.

Parent

integer

None.

Name

string

None.

Level

integer

None.

ModuleType

ModuleTypes

None.

Reactor

integer

None.

FireRate

integer

None.

DamageAmount

integer

None.

ShieldEffectiveness

integer

None.

ArmorEffectiveness

integer

None.

StructureEffectiveness

integer

None.

IgnoreShield

integer

None.

CriticalChance

integer

None.

CriticalStrength

integer

None.

ArmorPoints

integer

None.

ReactorPoints

integer

None.

FuelType

integer

None.

ThrustStrength

integer

None.

Dexterity

integer

None.

ShieldPoints

integer

None.

ShieldRegen

integer

None.

MinSize

integer

None.

MaxSize

integer

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IsCategory": 1,
  "Parent": 2,
  "Name": "sample string 3",
  "Level": 4,
  "ModuleType": 0,
  "Reactor": 5,
  "FireRate": 6,
  "DamageAmount": 7,
  "ShieldEffectiveness": 8,
  "ArmorEffectiveness": 9,
  "StructureEffectiveness": 10,
  "IgnoreShield": 11,
  "CriticalChance": 12,
  "CriticalStrength": 13,
  "ArmorPoints": 14,
  "ReactorPoints": 15,
  "FuelType": 16,
  "ThrustStrength": 17,
  "Dexterity": 18,
  "ShieldPoints": 19,
  "ShieldRegen": 20,
  "MinSize": 21,
  "MaxSize": 22,
  "Id": 26
}

application/xml, text/xml

Sample:
<ShipModuleType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShipRigging">
  <Id xmlns="http://schemas.datacontract.org/2004/07/">26</Id>
  <Active>true</Active>
  <ArmorEffectiveness>9</ArmorEffectiveness>
  <ArmorPoints>14</ArmorPoints>
  <BasePrice>25.1</BasePrice>
  <CriticalChance>12</CriticalChance>
  <CriticalStrength>13</CriticalStrength>
  <DamageAmount>7</DamageAmount>
  <Dexterity>18</Dexterity>
  <DropElements xmlns:d2p1="http://schemas.datacontract.org/2004/07/Resources">
    <d2p1:DropFromObjects.DropElement>
      <d2p1:BaseDifficulty>6</d2p1:BaseDifficulty>
      <d2p1:ChanceSeed>5</d2p1:ChanceSeed>
      <d2p1:DrType>NotSelected</d2p1:DrType>
      <d2p1:DropId>3</d2p1:DropId>
      <d2p1:Editable>true</d2p1:Editable>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:QuantitySeed>4</d2p1:QuantitySeed>
    </d2p1:DropFromObjects.DropElement>
    <d2p1:DropFromObjects.DropElement>
      <d2p1:BaseDifficulty>6</d2p1:BaseDifficulty>
      <d2p1:ChanceSeed>5</d2p1:ChanceSeed>
      <d2p1:DrType>NotSelected</d2p1:DrType>
      <d2p1:DropId>3</d2p1:DropId>
      <d2p1:Editable>true</d2p1:Editable>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:QuantitySeed>4</d2p1:QuantitySeed>
    </d2p1:DropFromObjects.DropElement>
  </DropElements>
  <FireRate>6</FireRate>
  <FuelType>16</FuelType>
  <IgnoreShield>11</IgnoreShield>
  <IsCategory>1</IsCategory>
  <Level>4</Level>
  <MaxSize>22</MaxSize>
  <MinSize>21</MinSize>
  <ModuleType>None</ModuleType>
  <Name>sample string 3</Name>
  <Parent>2</Parent>
  <RandomTradeWeight>24</RandomTradeWeight>
  <Reactor>5</Reactor>
  <ReactorPoints>15</ReactorPoints>
  <ShieldEffectiveness>8</ShieldEffectiveness>
  <ShieldPoints>19</ShieldPoints>
  <ShieldRegen>20</ShieldRegen>
  <StructureEffectiveness>10</StructureEffectiveness>
  <ThrustStrength>17</ThrustStrength>
</ShipModuleType>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.