POST api/Editor/UpdateShipModel
Request Information
URI Parameters
None.
Body Parameters
ShipModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Parent | integer |
None. |
|
BaseStructureHp | integer |
None. |
|
BattleIntensity | integer |
None. |
|
Name | string |
None. |
|
NameRus | string |
None. |
|
FormationRole | ShipFormationRole |
None. |
|
Size | integer |
None. |
|
FactionId | integer |
None. |
|
Dexterity | integer |
None. |
|
ShipDescription | string |
None. |
|
ShipDescriptionRus | string |
None. |
|
SkillIds | string |
None. |
|
WeaponTypes | Collection of integer |
None. |
|
Slots | Collection of ShipModelSlot |
None. |
|
DropUnit1 | integer |
None. |
|
DropCount1 | integer |
None. |
|
DropUnit2 | integer |
None. |
|
DropCount2 | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Parent": 2, "BaseStructureHp": 3, "BattleIntensity": 4, "Name": "sample string 5", "NameRus": "sample string 6", "FormationRole": 0, "Size": 7, "FactionId": 8, "Dexterity": 9, "ShipDescription": "sample string 10", "ShipDescriptionRus": "sample string 11", "SkillIds": "sample string 12", "WeaponTypes": [ 1, 2 ], "Slots": [ { "Id": 1, "ShipDesignId": 2, "SlotNumber": 3, "SlotType": 0, "Size": 4, "SlotForTeam": true }, { "Id": 1, "ShipDesignId": 2, "SlotNumber": 3, "SlotType": 0, "Size": 4, "SlotForTeam": true } ], "DropUnit1": 18, "DropCount1": 19, "DropUnit2": 20, "DropCount2": 21 }
application/xml, text/xml
Sample:
<ShipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Spaceships"> <Active>true</Active> <ArmorRate>17</ArmorRate> <BaseStructureHp>3</BaseStructureHp> <BattleIntensity>4</BattleIntensity> <Dexterity>9</Dexterity> <DropCount1>19</DropCount1> <DropCount2>21</DropCount2> <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> <DropUnit1>18</DropUnit1> <DropUnit2>20</DropUnit2> <EvadeRate>15</EvadeRate> <FactionId>8</FactionId> <FireRate>16</FireRate> <FormationRole>None</FormationRole> <IconCount>14</IconCount> <Id>1</Id> <Name>sample string 5</Name> <NameRus>sample string 6</NameRus> <Parent>2</Parent> <ShipDescription>sample string 10</ShipDescription> <ShipDescriptionRus>sample string 11</ShipDescriptionRus> <Size>7</Size> <SkillIds>sample string 12</SkillIds> <Slots> <ShipModelSlot> <Id>1</Id> <ShipDesignId>2</ShipDesignId> <Size>4</Size> <SlotForTeam>true</SlotForTeam> <SlotNumber>3</SlotNumber> <SlotType>None</SlotType> </ShipModelSlot> <ShipModelSlot> <Id>1</Id> <ShipDesignId>2</ShipDesignId> <Size>4</Size> <SlotForTeam>true</SlotForTeam> <SlotNumber>3</SlotNumber> <SlotType>None</SlotType> </ShipModelSlot> </Slots> <WeaponTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </WeaponTypes> </ShipModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |